File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
onnx_diagnostic/torch_export_patches/eval Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff 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()
Original file line number Diff line number Diff line change 22Exporter 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
Original file line number Diff line number Diff line change 1- ========================
2- Patches for transformers
3- ========================
1+ =======================
2+ Coverage of the Patches
3+ =======================
44
55Serialized 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
1817Patched 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_"):
Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments