From b9ee71056c60c0bddb7ae986e240fd1aebe1eaf4 Mon Sep 17 00:00:00 2001 From: hong <43953930+phlrain@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:54:12 +0800 Subject: [PATCH] skip inplace check for new ir (#55702) --- test/legacy_test/eager_op_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/legacy_test/eager_op_test.py b/test/legacy_test/eager_op_test.py index 489d8ce02d7..f34ff8e137d 100644 --- a/test/legacy_test/eager_op_test.py +++ b/test/legacy_test/eager_op_test.py @@ -1696,6 +1696,9 @@ class OpTest(unittest.TestCase): if getattr(self, "no_need_check_inplace", False): return + if os.getenv("FLAGS_enable_new_ir_in_executor"): + return + has_infer_inplace = fluid.core.has_infer_inplace(self.op_type) has_grad_op_maker = fluid.core.has_grad_op_maker(self.op_type) fwd_res = self._calc_output( -- GitLab