diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 2f943457f5241b4167a82888e98aa4c33eed8341..772ee6dab6d98e863ffd24ef797fd75d97095481 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -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 diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index fb5bb6bcbce8c453c32b037efd0523fa330724a0..969398bda4cfd0b2f5e39f45d34a1da9b216901f 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -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