Skip to content

Commit 181cb15

Browse files
ezyangsoumith
authored andcommitted
Fix formatting error in docs.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
1 parent 5c74534 commit 181cb15

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/source/sparse.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ by providing these two tensors, as well as the size of the sparse tensor
2121
>>> i = torch.LongTensor([[0, 1], [2, 0]])
2222
>>> v = torch.FloatTensor([3, 4])
2323
>>> torch.sparse.FloatTensor(i, v, torch.Size([2,3])).to_dense()
24-
2524
0 0 3
2625
4 0 0
2726
[torch.FloatTensor of size 2x2]
@@ -32,7 +31,6 @@ dimensions are sparse, and the rest of the dimensions are dense.
3231
>>> i = torch.LongTensor([[2, 4]])
3332
>>> v = torch.FloatTensor([[1, 3], [5, 7]])
3433
>>> torch.sparse.FloatTensor(i, v).to_dense()
35-
3634
0 0
3735
0 0
3836
1 3

0 commit comments

Comments
 (0)