tensorflow学习——tf.layers.batch_normalization/tf.nn.batch_normalization/tf.contrib.layers.batch_norm
图片归一化方法:importtensorflowastfa=tf.constant([1.,2.,3.,4.,7.,5.,8.,4.,6.],shape=(1,3,3,3))a_mean,a_var=tf.nn.moments(a,axes=[1,2],keep_dims=True)b=tf.rsqrt(a_var)c=(a-a_mean)*b#c和d算的结果相同,是对整个batch图片归一化#只