-
Notifications
You must be signed in to change notification settings - Fork 722
[ExecuTorch] generalize tests for unary_ufunc_realhb_to_floath ops (1/2) #5674
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
Conversation
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]
🔗 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 FailuresAs of commit 91c7f43 with merge base 944bd67 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
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]
|
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]
|
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]
|
This pull request was exported from Phabricator. Differential Revision: D63431290 |
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]
|
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]
|
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]
|
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]
|
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]
|
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]
|
This pull request was exported from Phabricator. Differential Revision: D63431290 |
|
This pull request has been merged in 829ba3e. |
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/)
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_Fcalls 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