From b829ce14130a3fe29aaae9a766b90b04dc169c38 Mon Sep 17 00:00:00 2001 From: jiangcheng Date: Wed, 10 May 2023 11:48:12 +0800 Subject: [PATCH] [CINN] fix check_cinn in Optest check condition error bug --- 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 1be451d65e83b..7f8cee2a657e1 100644 --- a/python/paddle/fluid/tests/unittests/eager_op_test.py +++ b/python/paddle/fluid/tests/unittests/eager_op_test.py @@ -497,9 +497,9 @@ def disable_cal_ref_output(self): 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