Skip to content

Commit 01f4bcb

Browse files
committed
remove inputs/outputs from Operator
1 parent 92ac30e commit 01f4bcb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

python/paddle/v2/fluid/distribute_transpiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def _append_pserver_ops(self, optimize_block, opt_op, endpoint):
424424
# change output's ParamOut variable
425425
outputs = self._get_output_map_from_op(self.program.global_block().vars,
426426
opt_op)
427-
opt_op.outputs["ParamOut"] = new_inputs["Param"]
427+
outputs["ParamOut"] = new_inputs["Param"]
428428

429429
optimize_block.append_op(
430430
type=opt_op.type,

python/paddle/v2/fluid/framework.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ def __init__(self,
400400
"""
401401
self.block = block
402402
self.desc = desc
403-
# for clone a new operator
404-
self.inputs = inputs
405-
self.outputs = outputs
406403
self.attrs = attrs
407404
if len(self.desc.type()) != 0:
408405
return

0 commit comments

Comments
 (0)