-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ONNX] Avoid overwriting output type in onnx graph #25906
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
Conversation
|
@pytorchbot rebase this please |
7357faa to
0747ada
Compare
0747ada to
5a9d9b6
Compare
|
Edit: |
…aoof/pytorch into neraoof/fixSliceScripting # Conflicts: # torch/csrc/jit/passes/onnx.cpp
…oof/fixSliceScripting # Conflicts: # torch/onnx/symbolic_opset9.py
|
Seems there is a failed test case |
…oof/fixSliceScripting # Conflicts: # torch/onnx/symbolic_opset9.py
…aoof/pytorch into neraoof/fixSliceScripting # Conflicts: # torch/onnx/symbolic_opset9.py
|
@BowenBao I've updated the PR. This build failure: |
Co-Authored-By: Bowen Bao <[email protected]>
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.
When creating the onnx graph, we overwrite the output type with the output type of the PT graph.
In some special cases, when using scripting, the PT graph does not have type information. We want to avoid overwriting the input type is these cases.