未验证 提交 646eb4f0 编写于 作者: J Jiangxinz 提交者: GitHub

fix undef var (#33696)

上级 55aea350
...@@ -342,7 +342,7 @@ class DotPowParser(AscendParserBase): ...@@ -342,7 +342,7 @@ class DotPowParser(AscendParserBase):
y = self._get_ge_input(self.op.input_arg_names[1]) y = self._get_ge_input(self.op.input_arg_names[1])
pow = core.GEOperatorFactory.create_operator( pow = core.GEOperatorFactory.create_operator(
"dotpow" + self._accumulated_op_id(), "dotpow" + self._accumulated_op_id(),
"Pow").set_input("x1", x1).set_input("x2", y) "Pow").set_input("x1", x).set_input("x2", y)
return [pow], [[0]] return [pow], [[0]]
...@@ -918,15 +918,15 @@ class ScatterParser(AscendParserBase): ...@@ -918,15 +918,15 @@ class ScatterParser(AscendParserBase):
scatter_value = core.GEOperatorFactory.create_operator( scatter_value = core.GEOperatorFactory.create_operator(
"scatter" + self._accumulated_op_id(), "scatter" + self._accumulated_op_id(),
"TensorScatterAdd").set_input( "TensorScatterAdd").set_input(
"x", x_var).set_input("indices", index_var).set_input( "x", x).set_input("indices", index).set_input("updates",
"updates", updatesi_var) updates)
else: else:
scatter_value = core.GEOperatorFactory.create_operator( scatter_value = core.GEOperatorFactory.create_operator(
"scatter" + self._accumulated_op_id(), "scatter" + self._accumulated_op_id(),
"TensorScatterUpdate").set_input( "TensorScatterUpdate").set_input(
"x", x_var).set_input("indices", index_var).set_input( "x", x).set_input("indices", index).set_input("updates",
"updates", updates_var) updates)
return [x_var, index_var, updates_var, scatter_value], [[-1]] return [x, index, updates, scatter_value], [[-1]]
class CastParser(AscendParserBase): class CastParser(AscendParserBase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册