Skip to content

Commit 77a9893

Browse files
committed
fix issues
1 parent 4d2ca88 commit 77a9893

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_doc/examples/plot_export_tiny_llm_patched.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
from onnx_diagnostic.helpers.cache_helper import is_cache_dynamic_registered
7171
from onnx_diagnostic.helpers import string_type
7272
from onnx_diagnostic.torch_export_patches import torch_export_patches
73+
from onnx_diagnostic.torch_export_patches.patch_inputs import use_dyn_not_str
7374
from onnx_diagnostic.torch_models.llms import get_tiny_llm
7475

7576

@@ -110,7 +111,7 @@
110111
untrained_model,
111112
(),
112113
kwargs=modificator(cloned_inputs),
113-
dynamic_shapes=dynamic_shapes,
114+
dynamic_shapes=use_dyn_not_str(dynamic_shapes),
114115
strict=False, # mandatory for torch==2.6
115116
)
116117
print("It worked:")
@@ -131,7 +132,7 @@
131132
model,
132133
(),
133134
kwargs=modificator(cloned_inputs),
134-
dynamic_shapes=dynamic_shapes,
135+
dynamic_shapes=use_dyn_not_str(dynamic_shapes),
135136
strict=False, # mandatory for torch==2.6
136137
)
137138
print("It worked:")

onnx_diagnostic/_command_lines_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def get_parser_print() -> ArgumentParser:
138138
"\n"
139139
)
140140
),
141-
formatter_class=RawTextHelpFormatter,
142141
)
143142
parser.add_argument("input", type=str, help="onnx model to load")
144143
return parser

0 commit comments

Comments
 (0)