Update _torch_docs.py (#51212)
Summary:
Fix `torch.linalg.qr` reference where it's desired to render fully-qualified name into docs.
Suggested fix for https://github.com/pytorch/pytorch/pull/47764/files#r565368195
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51212
Reviewed By: ezyang
Differential Revision: D26142496
Pulled By: ailzhang
fbshipit-source-id: 052b2085099baa372e3b515b403f25d23cf50785
diff --git a/torch/_torch_docs.py b/torch/_torch_docs.py
index 93b0d10..5f1c687 100644
--- a/torch/_torch_docs.py
+++ b/torch/_torch_docs.py
@@ -6846,7 +6846,7 @@
If :attr:`some` is ``True``, then this function returns the thin (reduced) QR factorization.
Otherwise, if :attr:`some` is ``False``, this function returns the complete QR factorization.
-.. warning:: ``torch.qr`` is deprecated. Please use ``torch.linalg.`` :func:`~torch.linalg.qr`
+.. warning:: ``torch.qr`` is deprecated. Please use :func:`torch.linalg.qr`
instead.
**Differences with** ``torch.linalg.qr``: