Elastic Deep learning in the Cloud