Skip to content
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

[ExecuTorch] Unbreak optimized sub in the case where one input is a scalar and both are Half #5940

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

pytorchbot
Copy link
Collaborator

Stack from ghstack (oldest at bottom):

I misplaced a return. Caught this during development in div, but not sub.

Differential Revision: D63919553

…pe is mixed or both are Half (#5894)

Summary:
Pull Request resolved: #5894

I misplaced a return. Caught this during development in div, but not sub.
ghstack-source-id: 246398371
exported-using-ghexport

Reviewed By: kirklandsign

Differential Revision: D63919553

fbshipit-source-id: 84e27efc400711ae0253e48a4dbdb4b419140925
(cherry picked from commit 1052e3b)
Copy link

pytorch-bot bot commented Oct 7, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5940

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 980418e with merge base eecf74f (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 7, 2024
Copy link
Contributor

@dvorjackz dvorjackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a good grasp on what the surface area of this PR will be since you are modifying the behavior of an op. Can you comment on how much risk there is to CP this?

@swolchok
Copy link
Contributor

swolchok commented Oct 9, 2024

I don't have a good grasp on what the surface area of this PR will be since you are modifying the behavior of an op. Can you comment on how much risk there is to CP this?

I can tell you that the consequences of not picking it are that optimized op_sub will certainly be incorrect. I suppose the risk from picking it is that optimized op_sub might be incorrect in a different way.

Copy link
Contributor

@dvorjackz dvorjackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, seems like we improve the correctness of this op on average then 👍🏻

@dvorjackz dvorjackz merged commit c1b10a7 into release/0.4 Oct 9, 2024
34 checks passed
@dvorjackz dvorjackz deleted the cherry-pick-5894-by-pytorch_bot_bot_ branch October 9, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants