Skip to content

Support Half/BFloat16 in prod operator #7857

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

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

swolchok
Copy link
Contributor

Partial fix for #7748.

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Jan 22, 2025

Copy link

pytorch-bot bot commented Jan 22, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 5 Pending

As of commit 2737333 with merge base 2411c99 (image):
💚 Looks good so far! There are no failures yet. 💚

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

swolchok added a commit that referenced this pull request Jan 22, 2025
Partial fix for #7748.

ghstack-source-id: 52244e7
ghstack-comment-id: 2608475643
Pull Request resolved: #7857
@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 Jan 22, 2025
}
Tensor self = tf.make({2, 3}, {1, 2, 3, 4, 5, 6});
int64_t dim = 0;
bool keepdim = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

has there been a test with keepdim=True?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, but adding such a test would be out of scope for this change.

@swolchok swolchok added the release notes: ops & kernels Changes to the opset and any new / changed kernel implementations label Jan 22, 2025
@swolchok swolchok merged commit 0d365a6 into gh/swolchok/178/head Jan 23, 2025
44 checks passed
@swolchok swolchok deleted the gh/swolchok/179/head branch January 23, 2025 00:13
@swolchok swolchok restored the gh/swolchok/179/head branch January 23, 2025 00:41
swolchok added a commit that referenced this pull request Jan 23, 2025
swolchok added a commit that referenced this pull request Jan 23, 2025
* Coerce to true_ctype in tensor_factory (#7856)

This should fix the problem where attempts to test bool are often wonky in OSS and fail UBSAN internally; it is undefined behavior to store a value other than 0 or 1 for type bool.

* Support Half/BFloat16 in prod operator (#7857)

Partial fix for #7748.
YIWENX14 pushed a commit that referenced this pull request Jan 28, 2025
* Coerce to true_ctype in tensor_factory (#7856)

This should fix the problem where attempts to test bool are often wonky in OSS and fail UBSAN internally; it is undefined behavior to store a value other than 0 or 1 for type bool.

* Support Half/BFloat16 in prod operator (#7857)

Partial fix for #7748.
zonglinpeng pushed a commit to zonglinpeng/executorch that referenced this pull request Jan 30, 2025
* Coerce to true_ctype in tensor_factory (pytorch#7856)

This should fix the problem where attempts to test bool are often wonky in OSS and fail UBSAN internally; it is undefined behavior to store a value other than 0 or 1 for type bool.

* Support Half/BFloat16 in prod operator (pytorch#7857)

Partial fix for pytorch#7748.
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. release notes: ops & kernels Changes to the opset and any new / changed kernel implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants