Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 15, 2023
1 parent 5b8ef5f commit 328d3a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/brevitas_ort/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ def is_brevitas_ort_close(
ort_output = ort_output[0]
if isinstance(brevitas_output, tuple):
brevitas_output = brevitas_output[0]

# make sure we are not comparing 0s
if (ort_output == 0).all() and (brevitas_output == 0).all():
pytest.skip("Skip testing against all 0s.")
# make sure we are not comparing 0s
if (ort_output == 0).all() and (brevitas_output == 0).all():
pytest.skip("Skip testing against all 0s.")

return recursive_allclose(ort_output, brevitas_output, tolerance)

Expand Down

0 comments on commit 328d3a6

Please sign in to comment.