tdeboissiere / DeepLearningImplementations

Implementation of recent Deep Learning papers
MIT License
1.81k stars 650 forks source link

fix BN axis error #62

Closed chaoyan1037 closed 6 years ago

chaoyan1037 commented 6 years ago

For BatchNormalization function which is used in the Densenet implementation, the axis parameter should be the channel axis. For different data formats, we should assign different values to the parameter. Concretely, the channel is -1 (last axis) for Tensorflow while 1 (second axis) for Theano.