test=develop, fix using create_parameter with attr set to False error (#16115)

align_pyramid
Jiabin Yang 6 years ago committed by GitHub
parent 5bde120243
commit e233b91a23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -270,6 +270,9 @@ class LayerHelperBase(object):
attr = copy.deepcopy(attr)
if attr is None:
attr = ParamAttr._to_attr(attr)
if not attr:
return None
assert isinstance(attr, ParamAttr)
suffix = 'b' if is_bias else 'w'
if attr.name is None:

Loading…
Cancel
Save