Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions onnxscript/rewriter/ort_fusions/_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
np.testing.assert_equal(baseline_output.shape, optimized_output.shape)
np.testing.assert_allclose(baseline_output, optimized_output, rtol=rtol, atol=atol)
except AssertionError as e:
diff_mask = ~np.isclose(baseline_output, optimized_output, rtol=rtol, atol=atol)
diff = np.where(diff_mask, "X", " ")
print(diff)

Check warning on line 44 in onnxscript/rewriter/ort_fusions/_test_utils.py

View check run for this annotation

Codecov / codecov/patch

onnxscript/rewriter/ort_fusions/_test_utils.py#L42-L44

Added lines #L42 - L44 were not covered by tests
print(f"Failed for output {i} with rtol={rtol} and atol={atol}\n{e}")
raise
Loading
Loading