-
Notifications
You must be signed in to change notification settings - Fork 722
Add sort util for 1D tensors #2786
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2786
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit e52a09f with merge base 554eebe ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Differential Revision: D55577025
| using torch::executor::ArrayRef; | ||
| using torch::executor::testing::TensorFactory; | ||
|
|
||
| TEST(SortUtilTest, SortTensorTest) { |
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.
Nice test!
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
5dc444d to
cbd825c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
cbd825c to
b57570b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
b57570b to
b31cdbf
Compare
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
b31cdbf to
a38b3ff
Compare
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Summary: This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
a38b3ff to
99e56f3
Compare
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Summary: Pull Request resolved: #2786 This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
99e56f3 to
bf0616b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
Differential Revision: D64072692
Summary: Pull Request resolved: #2786 This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided. There are currently two limitations to this sort: - It only supports 1D tensors currently, has to be extended to support 2D and greater tensors. - Input types are assumed to be float and it currently asserts on that. This has to be templatized to support all dtypes. Reviewed By: iseeyuan Differential Revision: D55577025
|
This pull request was exported from Phabricator. Differential Revision: D55577025 |
bf0616b to
e52a09f
Compare
Summary:
This diff adds a simple sort utility that sorts a tensor's values and returns the sorted values and the sorted indices in the out tensors that are provided.
There are currently two limitations to this sort:
Differential Revision: D55577025