-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Enable ONNX constant folding for opset 11. #29011
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
Enable ONNX constant folding for opset 11. #29011
Conversation
houseroad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
Thanks @houseroad . |
|
And other linters |
d4b6108 to
3b7053a
Compare
@houseroad - updated based on your feedback. Fixed the C++ linter issues. |
|
rebase again? |
I just rebased before submitting. I am not seeing this build failure locally. Will try again. |
3b7053a to
a305f17
Compare
|
Rebased and started CI again. |
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@houseroad merged this pull request in bc91e19. |
|
Thanks @houseroad . |
Currently ONNX constant folding (
do_constant_folding=Truearg intorch.onnx.exportAPI) supports only opset 9 and 10 of ONNX. Opset 11 support was recently introduced in the ONNX exporter. For opset 11, it is currently a no-op. This change enables ONNX constant folding for opset 11. Specifically there are three main changes:test/onnx/test_utility_funs.pyandtest/onnx/test_pytorch_onnx_onnxruntime.pyfor opset 11.