Extends warning on norm docs (#63310)
authorMike Ruberry <mruberry@devfair044.h1.fair>
Tue, 17 Aug 2021 05:22:15 +0000 (22:22 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 17 Aug 2021 05:23:45 +0000 (22:23 -0700)
commit22f78144c70d9d215bc390805aa8d0657e548b85
treeb4bf0f3b8abadab8aad146b83ba0404871e8446f
parentad94248b571a0289acbba7d07cd8f694a968dd9a
Extends warning on norm docs (#63310)

Summary:
torch.norm has a couple documentation issues, like https://github.com/pytorch/pytorch/issues/44552 and https://github.com/pytorch/pytorch/issues/38595, but since it's deprecated this PR simply clarifies that the documentation (and implementation) of torch.norm maybe be incorrect. This should be additional encouragement for users to migrate to torch.linalg.vector_norm and torch.linalg.matrix_norm.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63310

Reviewed By: ngimel

Differential Revision: D30337997

Pulled By: mruberry

fbshipit-source-id: 0fdcc438f36e4ab29e21e0a64709e4f35a2467ba
torch/functional.py