From d61455cf4017c0b9e8a9668b18f086c736b2813e Mon Sep 17 00:00:00 2001 From: kngwyu Date: Thu, 14 Feb 2019 17:07:12 -0800 Subject: [PATCH] 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 --- torch/tensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch/tensor.py b/torch/tensor.py index 2ed379c..cb31ac8 100644 --- a/torch/tensor.py +++ b/torch/tensor.py @@ -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): -- 2.7.4