remove duplicate code from densenet (#827)
remove duplicate code from densenet (#827)

* remove duplicate code from densenet

* correct indentation

pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision