Skip to content

Commit 2914c64

Browse files
authored
Rename helpers into helper (#26)
* first version of sbs * move one function * fix issues * refactoring * fix import * g * add phi2 * issues * import issues * doc * final * doc * connect
1 parent c0df801 commit 2914c64

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2083
-1121
lines changed

CHANGELOGS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Change Logs
44
0.3.0
55
+++++
66

7+
* :pr:`26`: creates a folder ``helpers`` to gather all the functions
8+
used in many places
79
* :pr:`25`: improve patches for DynamicCache
810
(issue with register_pytree_flatten_spec being deprecated)
911
* :pr:`24`: dummy inputs for ``text2text-generation``, add new function

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Snapshot of usefuls tools
9898
.. code-block:: python
9999
100100
import onnx
101-
from onnx_diagnostic.helpers import onnx_dtype_name
101+
from onnx_diagnostic.helpers.onnx_helper import onnx_dtype_name
102102
103103
itype = onnx.TensorProto.BFLOAT16
104104
print(onnx_dtype_name(itype))

_doc/api/args.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

_doc/api/cache_helpers.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

_doc/api/helpers.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

_doc/api/helpers/args_helper.rst

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

_doc/api/helpers/cache_helper.rst

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

_doc/api/helpers/helper.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.helpers.helper
3+
==============================
4+
5+
.. automodule:: onnx_diagnostic.helpers.helper
6+
:no-undoc-members:
7+
:exclude-members: max_diff, string_diff, string_sig, string_type

_doc/api/helpers/index.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
onnx_diagnostic.helpers
3+
=======================
4+
5+
.. toctree::
6+
:maxdepth: 1
7+
:caption: submodules
8+
9+
args_helper
10+
cache_helper
11+
helper
12+
onnx_helper
13+
ort_session
14+
torch_test_helper
15+
16+
.. autofunction:: onnx_diagnostic.helpers.max_diff
17+
18+
.. autofunction:: onnx_diagnostic.helpers.string_diff
19+
20+
.. autofunction:: onnx_diagnostic.helpers.string_sig
21+
22+
.. autofunction:: onnx_diagnostic.helpers.string_type
23+
24+
.. automodule:: onnx_diagnostic.helpers
25+
:members:
26+
:no-undoc-members:

_doc/api/helpers/onnx_helper.rst

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

0 commit comments

Comments
 (0)