提交 de2d82d6 编写于 作者: J JiayiFeng

fix a bug

上级 649ae270
......@@ -640,8 +640,7 @@ class Operator(object):
"""
return self.desc.block_attr(name)
@property
def attrs(self):
def all_attrs(self):
"""
Get the attribute dict
Returns(dict): The Operator's attribute dict
......
......@@ -279,7 +279,7 @@ def _copy_reader_create_op_(block, op):
type=op.type,
inputs=new_input_map,
outputs=new_output_map,
attrs=op.attrs)
attrs=op.all_attrs())
return new_op
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册