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 b4837f9 commit f2f050fCopy full SHA for f2f050f
_unittests/ut_helpers/test_torch_helper.py
@@ -4,7 +4,7 @@
4
import onnx
5
import torch
6
import transformers
7
-from onnx_diagnostic.ext_test_case import ExtTestCase, hide_stdout
+from onnx_diagnostic.ext_test_case import ExtTestCase, hide_stdout, requires_torch
8
from onnx_diagnostic.helpers import max_diff, string_type
9
from onnx_diagnostic.helpers.torch_helper import (
10
dummy_llm,
@@ -274,6 +274,7 @@ def test_torch_deepcopy_cache_dce(self):
274
self.assertEqual(hash1, hash2)
275
self.assertGreater(torch_tensor_size(cc), 1)
276
277
+ @requires_torch("4.50")
278
def test_torch_deepcopy_mamba_cache(self):
279
cache = make_mamba_cache(
280
[
0 commit comments