From 93229f1d2b1fc7774d764dcf6bd22bf2ed0c56af Mon Sep 17 00:00:00 2001 From: parap1uie-s Date: Mon, 17 Feb 2020 14:49:43 +0800 Subject: [PATCH] Update resnet_acnet.py (#4297) Bias attr of square conv should be "False" rather than None during training mode. --- PaddleCV/image_classification/models/resnet_acnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PaddleCV/image_classification/models/resnet_acnet.py b/PaddleCV/image_classification/models/resnet_acnet.py index 57560338..e17046f0 100644 --- a/PaddleCV/image_classification/models/resnet_acnet.py +++ b/PaddleCV/image_classification/models/resnet_acnet.py @@ -172,7 +172,7 @@ class ResNetACNet(object): act=act if self.deploy else None, param_attr=ParamAttr(name=name + "_acsquare_weights"), bias_attr=ParamAttr(name=name + "_acsquare_bias") - if self.deploy else None, + if self.deploy else False, name=name + '.acsquare.conv2d.output.1') if self.deploy: -- GitLab