Skip to content

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Sep 26, 2024

Stack from ghstack (oldest at bottom):

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST;
it is just a bunch of TEST_F calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: D63431290

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 26, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 91c7f43 with merge base 944bd67 (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 Sep 26, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…r unary_ufunc_realhb_to_floath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…nc_realhb_to_floath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

swolchok added a commit that referenced this pull request Sep 26, 2024
Pull Request resolved: #5674

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.
ghstack-source-id: 244860513
@exported-using-ghexport

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)
…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

…oath ops (1/2)"

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63431290

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 829ba3e.

kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#5674

We have 20-odd ops that just map a unary function over each
element. We can share the test infrastructure rather than create a
bunch of similar-looking tests. Note that I attempted to minimize the
amount of code inside `IMPLEMENT_UNARY_UFUNC_REALHB_TO_FLOATH_TEST`;
it is just a bunch of `TEST_F` calls that call into plain old C++
functions, so we haven't merely copied the tests into a macro.

This diff only makes one op adopt the test to prove it works; following diff(s) will roll out fully.
ghstack-source-id: 245555539
@exported-using-ghexport

Differential Revision: [D63431290](https://our.internmc.facebook.com/intern/diff/D63431290/)
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. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants