Optimizing on-demand GPUs in the Cloud for Deep Learning Applications Training