Rename `btrifact*` to `lu` (#18435)
authorVishwak Srinivasan <cs15btech11043@iith.ac.in>
Fri, 29 Mar 2019 07:27:48 +0000 (00:27 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 Mar 2019 07:34:30 +0000 (00:34 -0700)
commitd859031ebf5a4e45ad950c5cd53b1dc1df5c4136
treeff9ed2b079ecf08f666dba6a020a10939a081064
parentc21e763cd6723a50d5acb50fed0f54252cf316ff
Rename `btrifact*` to `lu` (#18435)

Summary:
Changelog:

- Renames `btrifact` and `btrifact_with_info` to `lu`to remain consistent with other factorization methods (`qr` and `svd`).
- Now, we will only have one function and methods named `lu`, which performs `lu` decomposition. This function takes a get_infos kwarg, which when set to True includes a infos tensor in the tuple.
- Rename all tests, fix callsites
- Create a tentative alias for `lu` under the name `btrifact` and `btrifact_with_info`, and add a deprecation warning to not promote usage.
- Add the single batch version for `lu` so that users don't have to unsqueeze and squeeze for a single square matrix (see changes in determinant computation in `LinearAlgebra.cpp`)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18435

Differential Revision: D14680352

Pulled By: soumith

fbshipit-source-id: af58dfc11fa53d9e8e0318c720beaf5502978cd8
20 files changed:
aten/src/ATen/core/Tensor.h
aten/src/ATen/core/TensorMethods.h
aten/src/ATen/core/Type.h
aten/src/ATen/core/aten_interned_strings.h
aten/src/ATen/native/BatchLinearAlgebra.cpp
aten/src/ATen/native/LinearAlgebra.cpp
aten/src/ATen/native/LinearAlgebraUtils.h
aten/src/ATen/native/cuda/BatchLinearAlgebra.cu
aten/src/ATen/native/native_functions.yaml
docs/source/tensors.rst
docs/source/torch.rst
test/test_cuda.py
test/test_torch.py
tools/autograd/derivatives.yaml
tools/autograd/gen_python_functions.py
torch/__init__.pyi.in
torch/_tensor_docs.py
torch/_torch_docs.py
torch/functional.py
torch/tensor.py