8000 OnnxExporter by skanjila · Pull Request #3761 · ludwig-ai/ludwig · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OnnxExporter #3761

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 11, 2023
Merged

OnnxExporter #3761

merged 8 commits into from
Nov 11, 2023

Conversation

skanjila
Copy link
Collaborator
@skanjila skanjila commented Nov 2, 2023

Code Pull Requests

Please provide the following:

  • a simple set of classes to do onnx export of pytorch models

Documentation Pull Requests

Note that the documentation HTML files are in docs/ while the Markdown sources are in mkdocs/docs.

If you are proposing a modification to the documentation you should change only the Markdown files.

api.md is automatically generated from the docstrings in the code, so if you want to change something in that file, first modify ludwig/api.py docstring, then run mkdocs/code_docs_autogen.py, which will create mkdocs/docs/api.md .

Copy link
github-actions bot commented Nov 2, 2023

Unit Test Results

       6 files  ±0         6 suites  ±0   27m 29s ⏱️ - 2m 54s
2 802 tests +1  2 778 ✔️  - 10  23 💤 +11  1 ±0 
2 838 runs  +1  2 794 ✔️  - 18  43 💤 +19  1 ±0 

For more details on these failures, see this check.

Results for commit 180cad7. ± Comparison against base commit dc3ec73.

♻️ This comment has been updated with latest results.

Copy link
@saad-aimg saad-aimg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@justinxzhao
Copy link
Contributor

Hi @skanjila, it looks like there's a couple of pre-commit issues to resolve: https://results.pre-commit.ci/run/github/163346054/1699499452.zgxnE5vuTJujO_3rx1xLkQ

return self.model({"image_path": x})< 8000 /span>


class BaseModelExporter(ABC):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add docstrings to these new classes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

from ludwig.model_export.base_model_exporter import LudwigTorchWrapper


class OnnxExporter(ABC):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to inherit from BaseModelExporter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes I did, just forgot to put that in so added this just now

@skanjila skanjila self-assigned this Nov 11, 2023
@skanjila skanjila merged commit 8c47c3c into ludwig-ai:master Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0