Skip to content

Commit 5e5872f

Browse files
committed
test'
1 parent 7148ebd commit 5e5872f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

_doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def linkcode_resolve(domain, info):
116116
("py:class", "Argument"),
117117
("py:class", "default=sklearn.utils.metadata_routing.UNCHANGED"),
118118
("py:class", "ModelProto"),
119+
("py:class", "Model"),
119120
("py:class", "Module"),
120121
("py:class", "np.ndarray"),
121122
("py:class", "onnxscript.ir.Tuple"),

_doc/status/patches_coverage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ for transformers.
2828
import onnx_diagnostic.torch_export_patches.patches.patch_transformers as p
2929

3030
for name, cls in p.__dict__.items():
31-
if name.startswith("patched_"):
31+
if name.startswith("patched_") and hasattr(cls, "_PATCHES_"):
3232
print(f"{cls._PATCHED_CLASS_.__name__}: {', '.join(cls._PATCHES_)}")
3333

3434
Half Automated Rewrites for Control Flows

_unittests/ut_torch_models/test_test_helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
requires_torch,
1010
requires_experimental,
1111
requires_onnxscript,
12+
requires_transformers,
1213
)
1314
from onnx_diagnostic.torch_models.test_helper import (
1415
get_inputs_for_task,
@@ -187,6 +188,7 @@ def test_filter_inputs(self):
187188
@requires_torch("2.7")
188189
@hide_stdout()
189190
@ignore_warnings(FutureWarning)
191+
@requires_transformers("4.51")
190192
def test_validate_model_modelbuilder(self):
191193
mid = "arnir0/Tiny-LLM"
192194
summary, data = validate_model(

0 commit comments

Comments
 (0)