Skip to content

Commit

Permalink
fix bias parameter for resnet (PaddlePaddle#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 authored and SunGaofeng committed Aug 30, 2019
1 parent 274d953 commit 21e406d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dygraph/resnet/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self,
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)

Expand Down

0 comments on commit 21e406d

Please sign in to comment.