Skip to content

Commit e6ac972

Browse files
committed
fix a few things
1 parent 62517c5 commit e6ac972

File tree

15 files changed

+129
-183
lines changed

15 files changed

+129
-183
lines changed

.github/workflows/check-urls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: urls-checker-code
2626
uses: urlstechie/urlchecker-action@master
2727
with:
28-
subfolder: experimental_experiment
28+
subfolder: onnx_diagnostic
2929
file_types: .md,.py,.rst,.ipynb
3030
print_all: false
3131
timeout: 2

_doc/api/args.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
.args
3-
=====
2+
onnx_diagnostic.args
3+
====================
44

5-
.. automodule:: experimental_experiment.args
5+
.. automodule:: onnx_diagnostic.args
66
:members:
77
:no-undoc-members:

_doc/api/cache_helpers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
.cache_helpers
3-
==============
2+
onnx_diagnostic.cache_helpers
3+
=============================
44

5-
.. automodule:: experimental_experiment.cache_helpers
5+
.. automodule:: onnx_diagnostic.cache_helpers
66
:members:
77
:no-undoc-members:

_doc/api/ext_test_case.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
.ext_test_case
3-
==============
2+
onnx_diagnostic.ext_test_case
3+
=============================
44

5-
.. automodule:: experimental_experiment.ext_test_case
5+
.. automodule:: onnx_diagnostic.ext_test_case
66
:members:
77
:no-undoc-members:

_doc/api/helpers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
.helpers
3-
========
2+
onnx_diagnostic.helpers
3+
=======================
44

5-
.. automodule:: experimental_experiment.helpers
5+
.. automodule:: onnx_diagnostic.helpers
66
:members:
77
:no-undoc-members:

_doc/api/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
API
3-
===
2+
API of onnx_diagnostic
3+
======================
44

55

66
.. toctree::
@@ -17,6 +17,7 @@ API
1717
ext_test_case
1818
helpers
1919
ort_session
20+
torch_test_helper
2021

2122

2223
.. automodule:: onnx_diagnostic

_doc/api/onnx_tools.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
.onnx_tools
3-
===========
2+
onnx_diagnostic.onnx_tools
3+
==========================
44

5-
.. automodule:: experimental_experiment.onnx_tools
5+
.. automodule:: onnx_diagnostic.onnx_tools
66
:members:
77
:no-undoc-members:

_doc/api/ort_session.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
.ort_session
3-
============
2+
onnx_diagnostic.ort_session
3+
===========================
44

5-
.. automodule:: experimental_experiment.ort_session
5+
.. automodule:: onnx_diagnostic.ort_session
66
:members:
77
:no-undoc-members:

_doc/api/torch_test_helper.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.torch_test_helper
3+
=================================
4+
5+
.. automodule:: onnx_diagnostic.torch_test_helper
6+
:members:
7+
:no-undoc-members:

onnx_diagnostic/ext_test_case.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def measure_time(
228228
229229
from pprint import pprint
230230
from math import cos
231-
from experimental_experiment.ext_test_case import measure_time
231+
from onnx_diagnostic.ext_test_case import measure_time
232232
233233
res = measure_time(lambda: cos(0.5))
234234
pprint(res)
@@ -349,13 +349,13 @@ def todo(cls, f: Callable, msg: str):
349349

350350
def print_model(self, model: "ModelProto"): # noqa: F821
351351
"Prints a ModelProto"
352-
from experimental_experiment.helpers import pretty_onnx
352+
from onnx_diagnostic.helpers import pretty_onnx
353353

354354
print(pretty_onnx(model))
355355

356356
def print_onnx(self, model: "ModelProto"): # noqa: F821
357357
"Prints a ModelProto"
358-
from experimental_experiment.helpers import pretty_onnx
358+
from onnx_diagnostic.helpers import pretty_onnx
359359

360360
print(pretty_onnx(model))
361361

@@ -426,8 +426,8 @@ def assertEqualArrays(
426426

427427
def assertEqualArray(
428428
self,
429-
expected: numpy.ndarray,
430-
value: numpy.ndarray,
429+
expected: Any,
430+
value: Any,
431431
atol: float = 0,
432432
rtol: float = 0,
433433
msg: Optional[str] = None,
@@ -1038,7 +1038,7 @@ def statistics_on_file(filename: str) -> Dict[str, Union[int, float, str]]:
10381038
:showcode:
10391039
10401040
import pprint
1041-
from experimental_experiment.ext_test_case import statistics_on_file, __file__
1041+
from onnx_diagnostic.ext_test_case import statistics_on_file, __file__
10421042
10431043
pprint.pprint(statistics_on_file(__file__))
10441044
"""
@@ -1087,7 +1087,7 @@ def statistics_on_folder(
10871087
10881088
import os
10891089
import pprint
1090-
from experimental_experiment.ext_test_case import statistics_on_folder, __file__
1090+
from onnx_diagnostic.ext_test_case import statistics_on_folder, __file__
10911091
10921092
pprint.pprint(statistics_on_folder(os.path.dirname(__file__)))
10931093
@@ -1099,7 +1099,7 @@ def statistics_on_folder(
10991099
11001100
import os
11011101
import pprint
1102-
from experimental_experiment.ext_test_case import statistics_on_folder, __file__
1102+
from onnx_diagnostic.ext_test_case import statistics_on_folder, __file__
11031103
11041104
pprint.pprint(statistics_on_folder(os.path.dirname(__file__), aggregation=1))
11051105
"""

0 commit comments

Comments
 (0)