diff --git a/python/paddle/fluid/tests/unittests/eager_op_test.py b/python/paddle/fluid/tests/unittests/eager_op_test.py index 469caf4feae87..63a14a66efa62 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 @@ 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