Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect CUDA
torch.nn.Embedding
result when max_norm is not N…
…one and indices are not sorted (#45248) Summary: Sorting indices before calling `thrust::unique` fixes the issue. Fixes #44792 Pull Request resolved: #45248 Reviewed By: mruberry Differential Revision: D24194696 Pulled By: ngimel fbshipit-source-id: ab59ef9d46b9917b1417bab25f80ce9780f0c930
- Loading branch information
1 parent
88dcb95
commit 66505b6
Showing
2 changed files
with
18 additions
and
4 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