Skip to content
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

Export Python functions to ONNX as a single op #235

Open
gyenesvi opened this issue Feb 15, 2021 · 1 comment
Open

Export Python functions to ONNX as a single op #235

gyenesvi opened this issue Feb 15, 2021 · 1 comment
Labels

Comments

@gyenesvi
Copy link

Ask a Question

Question

I have seen some (experimental?) support in ONNX proto to functions (sequence of ops). Is it actually supported by ONNX latest version, or was it just experimental? How can I export a PyTorch model with such a function in it?

Further information

  • Relevant Area: model usage, best practices

  • Is this issue related to a specific model?
    No

Notes

For example, when exporting a ShuffleNet, it would be good to have the shuffle ops as a single op/a function so that it is easier on the importer side to understand which ops form a higher level compound. For small functions like the shuffle op, it could be merged on the importer side, but such practice becomes prohibitive for larger functions.

@jcwchen
Copy link
Member

jcwchen commented Mar 2, 2021

Should be solved by onnx/onnx#3286. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants