Skip to content

Commit

Permalink
[CINN] fix check_cinn in Optest check condition error bug (#53676)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisjiang authored May 10, 2023
1 parent f023d42 commit c828934
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/fluid/tests/unittests/eager_op_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c828934

Please sign in to comment.