We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df9228 commit 4cfd786Copy full SHA for 4cfd786
_unittests/ut_torch_models/test_test_helpers.py
@@ -2,7 +2,12 @@
2
import unittest
3
import packaging.version as pv
4
import torch
5
-from onnx_diagnostic.ext_test_case import ExtTestCase, hide_stdout, ignore_warnings
+from onnx_diagnostic.ext_test_case import (
6
+ ExtTestCase,
7
+ hide_stdout,
8
+ ignore_warnings,
9
+ requires_torch,
10
+)
11
from onnx_diagnostic.torch_models.test_helper import (
12
get_inputs_for_task,
13
validate_model,
@@ -54,6 +59,7 @@ def test_validate_model_export(self):
54
59
self.assertIsInstance(summary, dict)
55
60
self.assertIsInstance(data, dict)
56
61
62
+ @requires_torch("2.7")
57
63
@hide_stdout()
58
64
@ignore_warnings(FutureWarning)
65
def test_validate_model_onnx(self):
0 commit comments