From ea782e38a66bfd494fe08610037e65093ef65489 Mon Sep 17 00:00:00 2001 From: Abhinav Arora Date: Thu, 11 Jan 2018 10:29:24 -0800 Subject: [PATCH] Fix typo in batch norm bias initialization (#7449) --- python/paddle/v2/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/fluid/layers/nn.py b/python/paddle/v2/fluid/layers/nn.py index 48a6bee5588..1fb6523f552 100644 --- a/python/paddle/v2/fluid/layers/nn.py +++ b/python/paddle/v2/fluid/layers/nn.py @@ -983,7 +983,7 @@ def batch_norm(input, default_initializer=Constant(1.0)) bias = helper.create_parameter( - attr=helper.param_attr, shape=param_shape, dtype=dtype, is_bias=True) + attr=helper.bias_attr, shape=param_shape, dtype=dtype, is_bias=True) mean = helper.create_global_variable( dtype=input.dtype, -- GitLab