Skip to content

Commit 646eb4f

Browse files
authored
fix undef var (#33696)
1 parent 55aea35 commit 646eb4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/paddle/distributed/fleet/meta_optimizers/ascend/ascend_parser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def _apply(self):
342342
y = self._get_ge_input(self.op.input_arg_names[1])
343343
pow = core.GEOperatorFactory.create_operator(
344344
"dotpow" + self._accumulated_op_id(),
345-
"Pow").set_input("x1", x1).set_input("x2", y)
345+
"Pow").set_input("x1", x).set_input("x2", y)
346346
return [pow], [[0]]
347347

348348

@@ -918,15 +918,15 @@ def _apply(self):
918918
scatter_value = core.GEOperatorFactory.create_operator(
919919
"scatter" + self._accumulated_op_id(),
920920
"TensorScatterAdd").set_input(
921-
"x", x_var).set_input("indices", index_var).set_input(
922-
"updates", updatesi_var)
921+
"x", x).set_input("indices", index).set_input("updates",
922+
updates)
923923
else:
924924
scatter_value = core.GEOperatorFactory.create_operator(
925925
"scatter" + self._accumulated_op_id(),
926926
"TensorScatterUpdate").set_input(
927-
"x", x_var).set_input("indices", index_var).set_input(
928-
"updates", updates_var)
929-
return [x_var, index_var, updates_var, scatter_value], [[-1]]
927+
"x", x).set_input("indices", index).set_input("updates",
928+
updates)
929+
return [x, index, updates, scatter_value], [[-1]]
930930

931931

932932
class CastParser(AscendParserBase):

0 commit comments

Comments
 (0)