Skip to content

Commit ea782e3

Browse files
authored
Fix typo in batch norm bias initialization (#7449)
1 parent a9dbdab commit ea782e3

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/v2/fluid/layers

1 file changed

+1
-1
lines changed

python/paddle/v2/fluid/layers/nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ def batch_norm(input,
983983
default_initializer=Constant(1.0))
984984

985985
bias = helper.create_parameter(
986-
attr=helper.param_attr, shape=param_shape, dtype=dtype, is_bias=True)
986+
attr=helper.bias_attr, shape=param_shape, dtype=dtype, is_bias=True)
987987

988988
mean = helper.create_global_variable(
989989
dtype=input.dtype,

0 commit comments

Comments
 (0)