Scalability Analysis And Optimization For Large-Scale Deep Learning