From 78b133b08d63fadcd00dcd87f987374d46ca08c7 Mon Sep 17 00:00:00 2001 From: z00478463 Date: Fri, 22 May 2020 15:38:06 +0800 Subject: [PATCH] for pylint 5th --- example/resnet50_imagenet2012_THOR/model/resnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/resnet50_imagenet2012_THOR/model/resnet.py b/example/resnet50_imagenet2012_THOR/model/resnet.py index 7a9b5a8922..fb05341348 100644 --- a/example/resnet50_imagenet2012_THOR/model/resnet.py +++ b/example/resnet50_imagenet2012_THOR/model/resnet.py @@ -126,7 +126,7 @@ def _bn_last(channel): def _fc(in_channel, out_channel, damping, loss_scale, frequency): weight_shape = (out_channel, in_channel) weight = Tensor(kaiming_uniform(weight_shape, a=math.sqrt(5)) - return Dense_Thor(in_channel, out_channel, has_bias=False, weight_init=weight, \ + return Dense_Thor(in_channel, out_channel, has_bias=False, weight_init=weight, bias_init=0, damping=damping, loss_scale=loss_scale, frequency=frequency)