-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not call permute on empty tensor (#3705)
Summary: X-link: facebookresearch/FBGEMM#787 Pull Request resolved: #3705 short circuit if pooled embedding(s) is empty, otherwise we run into invalid CUDA kernel launch args this change is necessary to support zero batch size KeyedJaggedTensor embedding lookups conceptually, we cannot permute an empty tensor (i.e. `tensor.numel()==0`) so return the empty tensor Reviewed By: sryap Differential Revision: D69635568 fbshipit-source-id: 4a8f710072a6de6d83c86a56c01e5434366d80dc
- Loading branch information
1 parent
607861a
commit 95099a6
Showing
4 changed files
with
13 additions
and
0 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
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
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
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