Skip to content

Add vectorized_math.h #11204

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add vectorized_math.h #11204

wants to merge 4 commits into from

Conversation

swolchok
Copy link
Contributor

Set of math functions that work on both scalars and at::vec::Vectorized, to be used in #9432.

[ghstack-poisoned]
Copy link

pytorch-bot bot commented May 28, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 402caf2 with merge base 71025df (image):

NEW FAILURE - The following job has failed:

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 May 28, 2025
@swolchok swolchok added the release notes: none Do not include this in the release notes label May 28, 2025
swolchok added 2 commits May 28, 2025 15:48
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]

TEST(VectorizedMathTest, BasicUnary) {
__at_align__ float result_floats[at::vec::Vectorized<float>::size()] = {0};
const auto x_vec = at::vec::Vectorized<float>::arange(0, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

why are all these tests using arange(0, 1), i.e. a single number instead of an actual vector of numbers?

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: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants