-
Notifications
You must be signed in to change notification settings - Fork 571
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
base: main
Are you sure you want to change the base?
Add vectorized_math.h #11204
Conversation
[ghstack-poisoned]
🔗 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 FailureAs of commit 402caf2 with merge base 71025df ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[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); |
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.
why are all these tests using arange(0, 1)
, i.e. a single number instead of an actual vector of numbers?
Set of math functions that work on both scalars and at::vec::Vectorized, to be used in #9432.