- Notifications
You must be signed in to change notification settings - Fork0
Refactoring and fixes minor bugs in light API#62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
9 commits Select commitHold shift + click to select a range
a4dde57 fix minour bugs in light API
xadupre0f12359 refactoring
xadupreb954060 complete refactoring
xadupre3e1cf33 fix unit test file
xaduprec352192 fix wrong import
xadupre3baf563 improve shape handling
xadupree128860 move files
xadupreba5650a fix documentation
xadupreed5465c doc
xadupreFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletions_doc/api/index.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9,6 +9,7 @@ API | ||
| array_api | ||
| graph_api | ||
| light_api | ||
| translate_api | ||
| npx_core_api | ||
| npx_functions | ||
| npx_jit_eager | ||
46 changes: 3 additions & 43 deletions_doc/api/light_api.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions_doc/api/translate_api.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| ============================ | ||
| onnx_array_api.translate_api | ||
| ============================ | ||
| Main API | ||
| ======== | ||
| translate | ||
| +++++++++ | ||
| .. autofunction:: onnx_array_api.translate_api.translate | ||
| make_helper | ||
| +++++++++++ | ||
| .. autofunction:: onnx_array_api.translate_api.make_helper.make_node_extended | ||
| .. autofunction:: onnx_array_api.translate_api.make_helper.make_ref_attribute | ||
| Classes for the Translater | ||
| ========================== | ||
| BaseEmitter | ||
| +++++++++++ | ||
| .. autoclass:: onnx_array_api.translate_api.base_emitter.BaseEmitter | ||
| :members: | ||
| EventType | ||
| +++++++++ | ||
| .. autoclass:: onnx_array_api.translate_api.base_emitter.EventType | ||
| :members: | ||
| InnerEmitter | ||
| ++++++++++++ | ||
| .. autoclass:: onnx_array_api.translate_api.inner_emitter.InnerEmitter | ||
| :members: | ||
| LightEmitter | ||
| ++++++++++++ | ||
| .. autoclass:: onnx_array_api.translate_api.light_emitter.LightEmitter | ||
| :members: | ||
| Translater | ||
| ++++++++++ | ||
| .. autoclass:: onnx_array_api.translate_api.translate.Translater | ||
| :members: |
4 changes: 2 additions & 2 deletions_unittests/ut_light_api/test_backend_export.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
20 changes: 18 additions & 2 deletions_unittests/ut_light_api/test_light_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions_unittests/ut_light_api/test_translate.py → ...ttests/ut_translate_api/test_translate.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions...ts/ut_light_api/test_translate_classic.py → ...t_translate_api/test_translate_classic.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiononnx_array_api/_command_lines_parser.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 11 additions & 3 deletionsonnx_array_api/light_api/annotations.py → onnx_array_api/annotations.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletionsonnx_array_api/graph_api/graph_builder.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
63 changes: 1 addition & 62 deletionsonnx_array_api/light_api/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiononnx_array_api/light_api/_op_var.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| from typing import List, Optional, Union | ||
| from ..annotations import AI_ONNX_ML, domain | ||
| class OpsVar: | ||
24 changes: 11 additions & 13 deletionsonnx_array_api/light_api/_op_vars.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletionsonnx_array_api/light_api/model.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.