Imported from https://github.com/Stick-To/DenseNet-TF