-
Notifications
You must be signed in to change notification settings - Fork 741
fix type promotion for div in RemoveMixedTypeOperators #12157
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
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12157
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 3 PendingAs of commit 6eddd12 with merge base f6bb143 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
The promotion strategy is dependent on the rounding mode (see the div decomp in PyTorch https://github.com/pytorch/pytorch/blob/main/torch/_refs/__init__.py#L1214 and then the promotion annotation on each of the true_divide/trunc_divide/floor_divide functions itcalls). I had to restructure the test a bit more so that lint didn't complain it was too complex. ghstack-source-id: 20618fd ghstack-comment-id: 3026116637 Pull-Request-resolved: #12157
| if ( | ||
| op == torch.ops.aten.div.Tensor_mode | ||
| and kwargs.get("rounding_mode") is None | ||
| ): | ||
| promotion_kind = ELEMENTWISE_TYPE_PROMOTION_KIND.INT_TO_FLOAT |
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.
Are you saying div.Tensor_mode without rounding_mode specified is equivalent to div.Tensor
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.
|
noting green tests except lintrunner |
The promotion strategy is dependent on the rounding mode (see the div decomp in PyTorch https://github.com/pytorch/pytorch/blob/main/torch/_refs/__init__.py#L1214 and then the promotion annotation on each of the true_divide/trunc_divide/floor_divide functions itcalls). I had to restructure the test a bit more so that lint didn't complain it was too complex. ghstack-source-id: 0d3aa92 ghstack-comment-id: 3026116637 Pull-Request-resolved: #12157
|
pull / test-eval_llama-mmlu-linux / linux-job (pull_request) has previously passed and flaked this time, calling it good |
[ghstack-poisoned]
The promotion strategy is dependent on the rounding mode (see the div decomp in PyTorch https://github.com/pytorch/pytorch/blob/main/torch/_refs/__init__.py#L1214 and then the promotion annotation on each of the true_divide/trunc_divide/floor_divide functions itcalls). I had to restructure the test a bit more so that lint didn't complain it was too complex. ghstack-source-id: b75ace2 ghstack-comment-id: 3026116637 Pull-Request-resolved: #12157
The promotion strategy is dependent on the rounding mode (see the div decomp in PyTorch https://github.com/pytorch/pytorch/blob/main/torch/_refs/__init__.py#L1214 and then the promotion annotation on each of the true_divide/trunc_divide/floor_divide functions itcalls). I had to restructure the test a bit more so that lint didn't complain it was too complex.
The promotion strategy is dependent on the rounding mode (see the div
decomp in PyTorch
https://github.com/pytorch/pytorch/blob/main/torch/_refs/__init__.py#L1214
and then the promotion annotation on each of the
true_divide/trunc_divide/floor_divide functions itcalls).
I had to restructure the test a bit more so that lint didn't complain it was too complex.