Imported from https://github.com/dblN/stochastic_depth_keras