Skip to content

Commit 4cfd786

Browse files
committed
disabl
1 parent 1df9228 commit 4cfd786

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_unittests/ut_torch_models/test_test_helpers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
import unittest
33
import packaging.version as pv
44
import torch
5-
from onnx_diagnostic.ext_test_case import ExtTestCase, hide_stdout, ignore_warnings
5+
from onnx_diagnostic.ext_test_case import (
6+
ExtTestCase,
7+
hide_stdout,
8+
ignore_warnings,
9+
requires_torch,
10+
)
611
from onnx_diagnostic.torch_models.test_helper import (
712
get_inputs_for_task,
813
validate_model,
@@ -54,6 +59,7 @@ def test_validate_model_export(self):
5459
self.assertIsInstance(summary, dict)
5560
self.assertIsInstance(data, dict)
5661

62+
@requires_torch("2.7")
5763
@hide_stdout()
5864
@ignore_warnings(FutureWarning)
5965
def test_validate_model_onnx(self):

0 commit comments

Comments
 (0)