Skip to content

Commit 93f16db

Browse files
committed
Fix unrelated tests/networks/test_convert_to_onnx.py
There was a problem with this test after the else statement was removed, leading to a onnx_model not defined error
1 parent da29d2f commit 93f16db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/networks/test_convert_to_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_unet(self, device, use_trace, use_ort):
6464
rtol=rtol,
6565
atol=atol,
6666
)
67-
self.assertTrue(isinstance(onnx_model, onnx.ModelProto))
67+
self.assertTrue(isinstance(onnx_model, onnx.ModelProto))
6868

6969
@parameterized.expand(TESTS_ORT)
7070
@SkipIfBeforePyTorchVersion((1, 12))

0 commit comments

Comments
 (0)