Skip to content

Commit e027f7a

Browse files
kennyhorrorfacebook-github-bot
authored andcommitted
Fix character with wrong encodding in documentation (pytorch#12761)
Summary: Pull Request resolved: pytorch#12761 , is not really , and thus it can fail some of the Python 2 import. Reviewed By: weiyangfb Differential Revision: D10423231 fbshipit-source-id: 3738c0b9d2f52aa47eef06250f84c5933a38783f
1 parent 9d79030 commit e027f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_torch_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4243,7 +4243,7 @@ def parse_kwargs(desc):
42434243
# 3. SparseTensor._values().shape = (nnz, SparseTensor.shape[sparse_dim:])
42444244
#
42454245
# For instance, to create an empty sparse tensor with nnz = 0, dense_dim = 0 and
4246-
# sparse_dim = 1 (hence indices is a 2D tensor of shape = (1 0))
4246+
# sparse_dim = 1 (hence indices is a 2D tensor of shape = (1, 0))
42474247
>>> S = torch.sparse_coo_tensor(torch.empty([1, 0]), [], [1])
42484248
tensor(indices=tensor([], size=(1, 0)),
42494249
values=tensor([], size=(0,)),

0 commit comments

Comments
 (0)