forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pytorch#1447: sparse_mask doesn't make sense with uncoalesced ten…
…sors (pytorch#1458) * Make sparseMask error if mask is uncoalesced. Fixes pytorch#1447. Signed-off-by: Edward Z. Yang <[email protected]> * Add test for sparse adagrad. Previously, the sparse codepath was not exercised at all; this commit adds a very simple test case "sparse Rosenbrock"; the idea is to do Rosenbrock but then knock out one of the dimensions so that the tensor is sparse. Signed-off-by: Edward Z. Yang <[email protected]>
- Loading branch information
Showing
4 changed files
with
61 additions
and
10 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