Fix some documentation links in torch.tensor (#17109)
authorkngwyu <yuji.kngw.80s.revive@gmail.com>
Fri, 15 Feb 2019 01:07:12 +0000 (17:07 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 Feb 2019 01:13:50 +0000 (17:13 -0800)
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

torch/tensor.py

index 2ed379c..cb31ac8 100644 (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):