提交 01f4bcb5 编写于 作者: T typhoonzero

remove inputs/outputs from Operator

上级 92ac30ef
...@@ -424,7 +424,7 @@ class DistributeTranspiler: ...@@ -424,7 +424,7 @@ class DistributeTranspiler:
# change output's ParamOut variable # change output's ParamOut variable
outputs = self._get_output_map_from_op(self.program.global_block().vars, outputs = self._get_output_map_from_op(self.program.global_block().vars,
opt_op) opt_op)
opt_op.outputs["ParamOut"] = new_inputs["Param"] outputs["ParamOut"] = new_inputs["Param"]
optimize_block.append_op( optimize_block.append_op(
type=opt_op.type, type=opt_op.type,
......
...@@ -400,9 +400,6 @@ class Operator(object): ...@@ -400,9 +400,6 @@ class Operator(object):
""" """
self.block = block self.block = block
self.desc = desc self.desc = desc
# for clone a new operator
self.inputs = inputs
self.outputs = outputs
self.attrs = attrs self.attrs = attrs
if len(self.desc.type()) != 0: if len(self.desc.type()) != 0:
return return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册