How to train and deploy deep learning at scale