diff --git a/dygraph/resnet/train.py b/dygraph/resnet/train.py index d768f920621c7168419fa27024e6f6d8cf21d65e..5817200dcdb2ec0acf04ba5060b225c38e88fc86 100644 --- a/dygraph/resnet/train.py +++ b/dygraph/resnet/train.py @@ -88,7 +88,7 @@ class ConvBNLayer(fluid.dygraph.Layer): padding=(filter_size - 1) // 2, groups=groups, act=None, - bias_attr=None) + bias_attr=False) self._batch_norm = BatchNorm(self.full_name(), num_filters, act=act)