Skip to content

Commit f8f50ad

Browse files
committed
bug
1 parent 9ee7aa7 commit f8f50ad

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

CHANGELOGS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Change Logs
44
0.3.0
55
+++++
66

7-
* :pr:`30`: adds command to test a model id
7+
* :pr:`30`: adds command to test a model id, validate the export
88
* :pr:`29`: adds helpers to measure the memory peak and run benchmark
99
on different processes
1010
* :pr:`28`: adds command line to print out the configuration for a model id,

_unittests/ut_helpers/test_torch_test_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_replace_string_by_dynamic(self):
6262
proc = replace_string_by_dynamic(example)
6363
sproc = (
6464
str(proc)
65+
.replace(",min=None,max=None,_factory=True", "")
6566
.replace("_DimHint(type=<_DimHintType.DYNAMIC: 3>)", "DYN")
6667
.replace(" ", "")
6768
.replace("<_DimHint.DYNAMIC:3>", "DYN")

_unittests/ut_torch_models/test_test_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_validate_model_export(self):
4242
verbose=10,
4343
exporter="export-nostrict",
4444
dump_folder="dump_test_validate_model_export",
45+
patch=True,
4546
)
4647
self.assertIsInstance(summary, dict)
4748
self.assertIsInstance(data, dict)

onnx_diagnostic/torch_models/test_helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def empty(value: Any) -> bool:
2121
def _ds_clean(v):
2222
return (
2323
str(v)
24+
.replace(",min=None", "")
25+
.replace(",max=None", "")
26+
.replace(",_factory=True", "")
2427
.replace("<class 'onnx_diagnostic.torch_models.hghub.model_inputs.", "")
2528
.replace("'>", "")
2629
.replace("_DimHint(type=<_DimHintType.DYNAMIC: 3>)", "DYNAMIC")

0 commit comments

Comments
 (0)