-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have softmax handle case where all dims after reduction dim are 1
Summary: Memory-layout-wise, a tensor with shape [2, 1] is identical to that with shape [2], so the current implementation of softmax can handle it. Differential Revision: D47463543 fbshipit-source-id: 5523379ede1d508cf7acb3a037e0e6a36f20cecc
- Loading branch information
1 parent
61646f7
commit 186ef6c
Showing
3 changed files
with
6 additions
and
6 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