From 21e406dbc4de4bca0909f3491a34ba2b4433f4a1 Mon Sep 17 00:00:00 2001 From: xiaoting <31891223+tink2123@users.noreply.github.com> Date: Fri, 30 Aug 2019 14:28:48 +0800 Subject: [PATCH] fix bias parameter for resnet (#3234) --- dygraph/resnet/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph/resnet/train.py b/dygraph/resnet/train.py index d768f920..5817200d 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) -- GitLab