Skip to content

Commit fab3cb8

Browse files
committed
Remove debugging code
Signed-off-by: Ganesan Ramalingam <[email protected]>
1 parent ef13d35 commit fab3cb8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

onnxscript/rewriter/testing.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ def assert_numerically_equal(
9999
None, the_rewritten_proto_ort_inputs, run_options=run_options
100100
)
101101

102-
for i, (orig, rewritten) in enumerate(zip(original_outputs, the_rewritten_outputs)):
103-
print(f"==== Output {i} ====")
104-
diff = np.abs(orig - rewritten)
105-
for h in range(diff.shape[1]):
106-
subarray = diff[:, h, :, :] # Select along H
107-
if np.allclose(subarray, 0):
108-
print(f"H={h}: all zeros")
109-
else:
110-
print(f"H={h}: not all zeros")
111-
112102
np.testing.assert_allclose(
113103
original_outputs, the_rewritten_outputs, rtol=rtol, atol=atol, equal_nan=True
114104
)

0 commit comments

Comments
 (0)