Skip to content

Commit 215cca6

Browse files
committed
fix unit test
1 parent 400fb24 commit 215cca6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_unittests/ut_torch_models/test_validate_whole_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_validate_model_onnx_dynamo_ir(self):
8282
exporter="onnx-dynamo",
8383
dump_folder="dump_test/validate_model_onnx_dynamo_ir",
8484
patch=True,
85-
stop_if_static=2 if pv.Version(torch.__version__) > pv.Version("2.6.1") else 0,
85+
stop_if_static=0,
8686
optimization="ir",
8787
)
8888
self.assertIsInstance(summary, dict)

onnx_diagnostic/torch_export_patches/patches/patch_torch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _check_frozen(
174174
self.counter["ignored_backward_guard"] += 1
175175
raise AssertionError(
176176
f"[patched_ShapeEnv] Ignored guard {expr} == {concrete_val}, "
177-
f"this could result in accuracy problems."
177+
f"this could result in accuracy problems"
178178
)
179179

180180
def _set_replacement(

0 commit comments

Comments
 (0)