-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support broadcast for masked_select (#892)
Summary: Pull Request resolved: #892 Similar to pytorch version, add broadcast support for masked_select. - For no broadcast case, it will follow the previous logic. - Check whether we need to broadcast input or mask, only generate the necessary code and allocate needed memory. - Tried different solutions, I feel it's more memory efficient and faster to expand input or mask in device memory. (Better than the 3 kernels version we discussed before) - Refactored a bit the test. Reviewed By: chenyang78 Differential Revision: D48054898 fbshipit-source-id: e3e76e56389e1fe38f052408dcefda0dfe49e056
- Loading branch information
1 parent
664b25d
commit 19f07d3
Showing
3 changed files
with
459 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.