We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cd9e45 + de2d82d commit 8e58453Copy full SHA for 8e58453
python/paddle/fluid/framework.py
@@ -640,8 +640,7 @@ def block_attr(self, name):
640
"""
641
return self.desc.block_attr(name)
642
643
- @property
644
- def attrs(self):
+ def all_attrs(self):
645
646
Get the attribute dict
647
Returns(dict): The Operator's attribute dict
python/paddle/fluid/layers/io.py
@@ -279,7 +279,7 @@ def _copy_reader_create_op_(block, op):
279
type=op.type,
280
inputs=new_input_map,
281
outputs=new_output_map,
282
- attrs=op.attrs)
+ attrs=op.all_attrs())
283
return new_op
284
285
0 commit comments