Skip to content

Commit bbdf1ee

Browse files
committed
import issues
1 parent a2642ee commit bbdf1ee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_doc/examples/plot_export_tiny_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import transformers
3232
from onnx_diagnostic import doc
3333
from onnx_diagnostic.helpers import string_type
34+
from onnx_diagnostic.helpers.torch_test_helper import steel_forward
3435
from onnx_diagnostic.torch_models.llms import get_tiny_llm
35-
from onnx_diagnostic.torch_test_helper import steel_forward
3636

3737

3838
MODEL_NAME = "arnir0/Tiny-LLM"
@@ -77,7 +77,7 @@ def _forward_(*args, _f=None, **kwargs):
7777
model.forward = keep_model_forward
7878

7979
# %%
80-
# Another syntax with :func:`onnx_diagnostic.torch_test_helper.steel_forward`.
80+
# Another syntax with :func:`onnx_diagnostic.helpers.torch_test_helper.steel_forward`.
8181

8282
with steel_forward(model):
8383
model.generate(inputs, max_length=50, temperature=1, top_k=50, top_p=0.95, do_sample=True)

_unittests/ut_torch_models/try_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from onnx_diagnostic.ext_test_case import ExtTestCase, never_test
33
from onnx_diagnostic.helpers import string_type
4-
from onnx_diagnostic.torch_test_helper import steel_forward
4+
from onnx_diagnostic.helpers.torch_test_helper import steel_forward
55

66

77
class TestHuggingFaceHubModel(ExtTestCase):

onnx_diagnostic/helpers/torch_test_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def dummy_llm(
113113
.. runpython::
114114
:showcode:
115115
116-
from onnx_diagnostic.torch_test_helper import dummy_llm
116+
from onnx_diagnostic.helpers.torch_test_helper import dummy_llm
117117
print(dummy_llm())
118118
"""
119119

0 commit comments

Comments
 (0)