-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ONNX] PyTorch export to ONNX Opset 7 and 8 - Cont #22421
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 retest this please |
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.
Overall direction is good. Left some comments inline.
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.
We are closer, see inline comments
tools/run-clang-tidy-in-ci.sh
Outdated
| -g"-torch/csrc/jit/export.cpp" \ | ||
| -g"-torch/csrc/jit/import.cpp" \ | ||
| -g"-torch/csrc/jit/netdef_converter.cpp" \ | ||
| -g"-torch/csrc/jit/passes/onnx/cast_constant.cpp" \ |
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.
I prefer to let clang tidy cover as many files as possible. So let's try to remove the dependence of onnx header files in cast_constant.cpp file. Since there are only two places, hard coding with comments sounds acceptable.
| @@ -0,0 +1,71 @@ | |||
| #include <torch/csrc/jit/passes/onnx/cast_constant.h> | |||
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.
call this pass cast_all_constant_to_floating? cast_constant sounds too general.
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, let's land it.
|
@houseroad merged this pull request in b3147bc. |
|
@lara-hdr @BowenBao @houseroad |
|
@drnikolaev I'm not able to repro this locally, could you share the error message that you are seeing? |
This is an extension to the original PR #21765