未验证 提交 bac401cd 编写于 作者: W whs 提交者: GitHub

Merge pull request #7812 from wanghaoshuang/fix_layer_helper

Deepcopy ParamAttr while creating parameter.
......@@ -111,6 +111,7 @@ class LayerHelper(object):
is_bias=False,
default_initializer=None):
# Deepcopy the attr so that parameters can be shared in program
attr = copy.deepcopy(attr)
assert isinstance(attr, ParamAttr)
suffix = 'b' if is_bias else 'w'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册