Skip to content

Commit f2f050f

Browse files
committed
requires
1 parent b4837f9 commit f2f050f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_unittests/ut_helpers/test_torch_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import onnx
55
import torch
66
import transformers
7-
from onnx_diagnostic.ext_test_case import ExtTestCase, hide_stdout
7+
from onnx_diagnostic.ext_test_case import ExtTestCase, hide_stdout, requires_torch
88
from onnx_diagnostic.helpers import max_diff, string_type
99
from onnx_diagnostic.helpers.torch_helper import (
1010
dummy_llm,
@@ -274,6 +274,7 @@ def test_torch_deepcopy_cache_dce(self):
274274
self.assertEqual(hash1, hash2)
275275
self.assertGreater(torch_tensor_size(cc), 1)
276276

277+
@requires_torch("4.50")
277278
def test_torch_deepcopy_mamba_cache(self):
278279
cache = make_mamba_cache(
279280
[

0 commit comments

Comments
 (0)