Array API: Add `torch.linalg.matmul` alias to `torch.matmul` (#63227)
authorAnirudh Dagar <anirudhdagar6@gmail.com>
Tue, 7 Sep 2021 19:34:15 +0000 (12:34 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 7 Sep 2021 19:35:32 +0000 (12:35 -0700)
commit337c71be05f959799a305164e6edf86c686bb673
tree06fd73f0e8f36741fb19d041dda818ce6533a178
parent8407ce7e382b009547f3c0d282540006afcfa1b9
Array API: Add `torch.linalg.matmul` alias to `torch.matmul` (#63227)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/62811

Add `torch.linalg.matmul` alias to `torch.matmul`. Note that the `linalg.matmul` doesn't have a `method` variant.

Also cleaning up `torch/_torch_docs.py` when formatting is not needed.

cc IvanYashchuk Lezcano mruberry rgommers

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

Reviewed By: mrshenli

Differential Revision: D30770235

Pulled By: mruberry

fbshipit-source-id: bfba77dfcbb61fcd44f22ba41bd8d84c21132403
aten/src/ATen/core/aten_interned_strings.h
aten/src/ATen/core/interned_strings.h
aten/src/ATen/native/LinearAlgebra.cpp
aten/src/ATen/native/native_functions.yaml
docs/source/linalg.rst
torch/_torch_docs.py
torch/csrc/jit/passes/normalize_ops.cpp
torch/linalg/__init__.py
torch/overrides.py
torch/testing/_internal/common_methods_invocations.py