提交 7f0075e8 编写于 作者: Z zhiboniu

reverse to BatchNorm

上级 9f049f11
......@@ -137,11 +137,11 @@ class ConvBNLayer(TheseusLayer):
weight_attr = ParamAttr(learning_rate=lr_mult, trainable=True)
bias_attr = ParamAttr(learning_rate=lr_mult, trainable=True)
self.bn = BatchNorm2D(
self.bn = BatchNorm(
num_filters,
weight_attr=ParamAttr(learning_rate=lr_mult),
param_attr=ParamAttr(learning_rate=lr_mult),
bias_attr=ParamAttr(learning_rate=lr_mult),
data_format=data_format)
data_layout=data_format)
self.relu = nn.ReLU()
def forward(self, x):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册