-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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][TypePromo] Explicit type promotion pass #104064
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/104064
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit ff924c3: NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
ghstack-source-id: 5dafa469aa5e04e44da1e049d480324ba08e0bc2 Pull Request resolved: #104064
…on "[ONNX][TypePromo] Explicit type promotion pass" [ghstack-poisoned]
[ghstack-poisoned]
ghstack-source-id: b6ecfb481d3efdfceb4e5744bfffa799d6ad4631 Pull Request resolved: #104064
[ghstack-poisoned]
@@ -556,7 +490,7 @@ | |||
and sample.kwargs.get("padding") == 1, | |||
reason="FIXME: After https://github.com/microsoft/onnxruntime/issues/15446 is fixed", | |||
), | |||
xfail( | |||
skip( |
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.
After type promotion this test starts to fail a few subtests with unexpected pass, which appears to be inconsistent with the tagged xfail reason.
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.
Actually more likely due to the bumping onnxscript version in this PR, so unrelated to type promotion. The inconsistency concern still holds.
…multiple ops on "[ONNX][TypePromo] Explicit type promotion pass" This PR adds the `ExplicitTypePromotionPass` that does an fx graph to fx graph transformation explicitly adding cast nodes into the graph to emulate the PyTorch type promotion behavior. Full design doc and discussion at https://microsoft-my.sharepoint.com/:w:/p/bowbao/Edj2lF1oi0JIitT_3ntyuqkBo6ll7N6NJDmavM0lp_KkEA?e=OElyjR [ghstack-poisoned]
I will update new diagnostic rule id prior to merging. |
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.
This PR has a lot of complexity and very little documentation. Hard to follow
…romotion pass" This PR adds the `ExplicitTypePromotionPass` that does an fx graph to fx graph transformation explicitly adding cast nodes into the graph to emulate the PyTorch type promotion behavior. Full design doc and discussion at https://microsoft-my.sharepoint.com/:w:/p/bowbao/Edj2lF1oi0JIitT_3ntyuqkBo6ll7N6NJDmavM0lp_KkEA?e=OElyjR [ghstack-poisoned]
This PR adds the `ExplicitTypePromotionPass` that does an fx graph to fx graph transformation explicitly adding cast nodes into the graph to emulate the PyTorch type promotion behavior. Full design doc and discussion at https://microsoft-my.sharepoint.com/:w:/p/bowbao/Edj2lF1oi0JIitT_3ntyuqkBo6ll7N6NJDmavM0lp_KkEA?e=OElyjR [ghstack-poisoned]
This PR adds the `ExplicitTypePromotionPass` that does an fx graph to fx graph transformation explicitly adding cast nodes into the graph to emulate the PyTorch type promotion behavior. Full design doc and discussion at https://microsoft-my.sharepoint.com/:w:/p/bowbao/Edj2lF1oi0JIitT_3ntyuqkBo6ll7N6NJDmavM0lp_KkEA?e=OElyjR [ghstack-poisoned]
…Explicit type promotion pass" This PR adds the `ExplicitTypePromotionPass` that does an fx graph to fx graph transformation explicitly adding cast nodes into the graph to emulate the PyTorch type promotion behavior. Full design doc and discussion at https://microsoft-my.sharepoint.com/:w:/p/bowbao/Edj2lF1oi0JIitT_3ntyuqkBo6ll7N6NJDmavM0lp_KkEA?e=OElyjR [ghstack-poisoned]
@pytorchbot merge -f "unrelated cudnn failure" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
_run_node_and_set_meta
#104720This PR adds the
ExplicitTypePromotionPass
that does an fx graph to fx graph transformationexplicitly adding cast nodes into the graph to emulate the PyTorch type promotion behavior.
Full design doc and discussion at https://microsoft-my.sharepoint.com/:w:/p/bowbao/Edj2lF1oi0JIitT_3ntyuqkBo6ll7N6NJDmavM0lp_KkEA?e=OElyjR