As shown in the doc , tf.contrib is a contribution module containing volatile or experimental code. When the function is completed, it will be removed from this module. Now there are two of them to be compatible with the historical version.
So, it is recommended to use the previous tf.layers.batch_normalization .
source share