Skip to content

Commit 8e58453

Browse files
committed
Merge branch 'update_reader' of https://github.com/JiayiFeng/Paddle into update_reader
2 parents 3cd9e45 + de2d82d commit 8e58453

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

python/paddle/fluid/framework.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,7 @@ def block_attr(self, name):
640640
"""
641641
return self.desc.block_attr(name)
642642

643-
@property
644-
def attrs(self):
643+
def all_attrs(self):
645644
"""
646645
Get the attribute dict
647646
Returns(dict): The Operator's attribute dict

python/paddle/fluid/layers/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def _copy_reader_create_op_(block, op):
279279
type=op.type,
280280
inputs=new_input_map,
281281
outputs=new_output_map,
282-
attrs=op.attrs)
282+
attrs=op.all_attrs())
283283
return new_op
284284

285285

0 commit comments

Comments
 (0)