提交 86490c57 编写于 作者: Q qili93

fix ParamAttr api in create_parameter, test=develop

上级 9250c63b
......@@ -88,6 +88,8 @@ class Layer(object):
for key, value in param_attr.items():
if '\n' in str(value):
value = string(str(value).replace('\n', ','))
if str(key) == 'attr':
value = 'ParamAttr(' + str(value) + ')'
layer_code = layer_code + key + "={}, ".format(value)
layer_code = layer_code.strip(", ")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册