From c828934e94af66ee6539a7a978e59cdeae79671a Mon Sep 17 00:00:00 2001 From: jiangcheng Date: Wed, 10 May 2023 15:46:56 +0800 Subject: [PATCH] [CINN] fix check_cinn in Optest check condition error bug (#53676) --- python/paddle/fluid/tests/unittests/eager_op_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/eager_op_test.py b/python/paddle/fluid/tests/unittests/eager_op_test.py index 469caf4feae..63a14a66efa 100644 --- a/python/paddle/fluid/tests/unittests/eager_op_test.py +++ b/python/paddle/fluid/tests/unittests/eager_op_test.py @@ -557,9 +557,9 @@ class OpTest(unittest.TestCase): def _enable_check_cinn_test(self, place, inputs, outputs): # if the test not run in cuda or the paddle not compile with CINN, skip cinn test if ( - core.is_compiled_with_cinn() - and core.is_compiled_with_cuda() - and isinstance(place, fluid.CUDAPlace) + not core.is_compiled_with_cinn() + or not core.is_compiled_with_cuda() + or not isinstance(place, fluid.CUDAPlace) ): return False # CINN not support bfloat16 now, skip cinn test -- GitLab