Skip to content

Commit 28b0cf4

Browse files
committed
documentation
1 parent e22dd69 commit 28b0cf4

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

_doc/status/exported_program_dynamic.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ to the original model.
1515
import inspect
1616
import textwrap
1717
import pandas
18-
from onnx_diagnostic.torch_export_patch.eval import discover, run_exporter
18+
from onnx_diagnostic.helpers import string_type
19+
from onnx_diagnostic.torch_export_patches.eval import discover, run_exporter
1920
from onnx_diagnostic.ext_test_case import unit_test_going
2021

2122
cases = discover()

_doc/status/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
Exporter Status
33
===============
44

5-
Following sections tries to capture what works and what does not.
5+
Following sections tries to capture what patches are put in place to export,
6+
what works and what does not with :func:`torch.export.export`.
67

78
.. toctree::
89
:maxdepth: 1
910

1011
exported_program_dynamic
11-
patched_classes
12+
patches_coverage

_doc/status/patches_for_transformers.rst renamed to _doc/status/patches_coverage.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
========================
2-
Patches for transformers
3-
========================
1+
=======================
2+
Coverage of the Patches
3+
=======================
44

55
Serialized Classes
66
==================
@@ -10,10 +10,9 @@ The following code shows the list of serialized classes in transformers.
1010
.. runpython::
1111
:showcode:
1212

13-
import pprint
14-
import onnx_diagnostic.torch_export_patch.patches.patch_transformers as p
13+
import onnx_diagnostic.torch_export_patches.onnx_export_serialization as p
1514

16-
pprint.pprint(sorted(p.serialization_functions()))
15+
print('\n'.join(sorted(p.serialization_functions())))
1716

1817
Patched Classes
1918
===============
@@ -24,7 +23,7 @@ for transformers.
2423
.. runpython::
2524
:showcode:
2625

27-
import onnx_diagnostic.torch_export_patch.patches.patch_transformers as p
26+
import onnx_diagnostic.torch_export_patches.patches.patch_transformers as p
2827

2928
for name, cls in p.__dict__.items():
3029
if name.startswith("patched_"):
@@ -39,7 +38,7 @@ for transformers.
3938
.. runpython::
4039
:showcode:
4140

42-
import onnx_diagnostic.torch_export_patch.patches.patch_module_helper as p
41+
import onnx_diagnostic.torch_export_patches.patch_module_helper as p
4342

4443
for name, f in p.__dict__.items():
4544
if name.startswith("_rewrite_"):

onnx_diagnostic/torch_export_patches/eval/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def discover():
1515
:showcode:
1616
1717
import pprint
18-
from onnx_diagnostic.torch_export_patch.eval import discover
18+
from onnx_diagnostic.torch_export_patches.eval import discover
1919
2020
pprint.pprint(discover())
2121
"""

0 commit comments

Comments
 (0)