-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ONNX] Add warning in ONNX export when constant folding is on in training-amenable mode #40546
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
[ONNX] Add warning in ONNX export when constant folding is on in training-amenable mode #40546
Conversation
💊 CI failures summary and remediationsAs of commit fef706b (more details on the Dr. CI page):
🚧 1 fixed upstream failure:These were probably caused by upstream breakages that were already fixed.
Please rebase on the
|
|
Updated one more call site to fix test failures. |
|
The build failures seem unrelated. All tests are passing. |
|
@houseroad - could you please take a look when you get a chance. 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.
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!
|
@houseroad merged this pull request in ea03f95. |
This PR introduces a warning when user tries to export the model to ONNX in training-amenable mode while constant folding is turned on. We want to warn against any unintentional use because constant folding may fold some parameters that may be intended to be trainable in the exported model.