提交 216eaebd 编写于 作者: F Flowingsun007

add bn axis 3

上级 609b5651
......@@ -47,9 +47,12 @@ class ResnetBuilder(object):
def _batch_norm(self, inputs, name=None, last=False):
initializer = flow.zeros_initializer() if last else flow.ones_initializer()
axis = 1
if self.data_format =="NHWC":
axis = 3
return flow.layers.batch_normalization(
inputs=inputs,
axis=1,
axis=axis,
momentum=0.9, # 97,
epsilon=1e-5,
center=True,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册