fea/docker_cudnn7
JiayiFeng 7 years ago
parent 649ae2700e
commit de2d82d6a9

@ -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

Loading…
Cancel
Save