未验证 提交 986ccbca 编写于 作者: A Aurelius84 提交者: GitHub

[NewIR] Fix PR conflict leading test_build_op failed (#56131)

上级 0399b39f
......@@ -59,7 +59,7 @@ class TestBuildOp(unittest.TestCase):
class TestBuildOp2(unittest.TestCase):
def test_build_add_n_op(self):
newir_program = get_ir_program()
tanh_out = newir_program.block().get_ops()[-1].result(0)
tanh_out = newir_program.block().ops[-1].result(0)
paddle.framework.set_flags({"FLAGS_enable_new_ir_api": True})
with paddle.ir.core.program_guard(newir_program):
out1 = paddle.mean(tanh_out)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册