Fix some documentation links in torch.tensor (#17109)

Summary:
Currently it's broken https://pytorch.org/docs/stable/tensors.html#torch.Tensor.norm
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17109

Differential Revision: D14093567

Pulled By: ezyang

fbshipit-source-id: b167cde2150ee97ccf5689fcf50ff8157acfce10
This commit is contained in:
kngwyu
2019-02-14 17:07:12 -08:00
committed by Facebook Github Bot
parent 5f866d0ea2
commit d61455cf40

View File

@ -256,11 +256,11 @@ class Tensor(torch._C._TensorBase):
return torch.argmin(self, dim, keepdim)
def argsort(self, dim=None, descending=False):
r"""See :func: `torch.argsort`"""
r"""See :func:`torch.argsort`"""
return torch.argsort(self, dim, descending)
def norm(self, p="fro", dim=None, keepdim=False, dtype=None):
r"""See :func: `torch.norm`"""
r"""See :func:`torch.norm`"""
return torch.norm(self, p, dim, keepdim, dtype=dtype)
def potrf(self, upper=True):