pytorch/torch
lezcano a5bbfd94fb Deprecate torch.lu
**BC-breaking note**:

This PR deprecates `torch.lu` in favor of `torch.linalg.lu_factor`.
A upgrade guide is added to the documentation for `torch.lu`.

Note this PR DOES NOT remove `torch.lu`.

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

Approved by: https://github.com/IvanYashchuk, https://github.com/mruberry
2022-05-05 19:17:11 +00:00
..
_C [Reland take-2] Add JIT graph fuser for oneDNN Graph API (v0.5) 2022-05-05 16:57:03 +00:00
_C_flatbuffer
_decomp Added logit/reciprocal decomps, fixed var for complex, moved type promotion logic to standardize on primtorch's 2022-05-04 21:29:52 +00:00
_lazy [LT] Add a flag to control IR reusing 2022-05-03 14:48:15 +00:00
_masked Revert "Use scatter_reduce to support masked reductions on sparse COO tensors (sum, prod, amin, amax)" 2022-05-04 22:31:31 +00:00
_prims Adds amax and amin references 2022-05-05 15:53:09 +00:00
_refs Adds amax and amin references 2022-05-05 15:53:09 +00:00
amp add XPU support for autocast 2022-04-19 21:18:23 +00:00
ao ns for fx: skip shadowing ops if copy subgraph is not implemented (#76663) 2022-05-05 13:19:53 +00:00
autograd Add type hints for a few random functions/classes 2022-05-04 13:53:00 +00:00
backends Deprecate torch.lu 2022-05-05 19:17:11 +00:00
contrib
cpu
csrc Add linalg.lu_solve 2022-05-05 19:02:13 +00:00
cuda Add __all__ for torch.cuda.memory 2022-04-28 15:06:12 +00:00
distributed [RPC small change] Improving logging for store.wait error 2022-05-05 18:23:17 +00:00
distributions Removed direct doc formatting 2022-05-02 14:14:33 +00:00
fft
futures
fx Added proxy tensor 2022-05-03 22:46:30 +00:00
jit [Reland take-2] Add JIT graph fuser for oneDNN Graph API (v0.5) 2022-05-05 16:57:03 +00:00
legacy
lib
linalg Deprecate torch.lu 2022-05-05 19:17:11 +00:00
monitor
multiprocessing
nested
nn Fix false DeprecationWarning in Module.state_dict 2022-05-04 20:08:23 +00:00
onnx [ONNX] Format ONNX python with black 2022-05-05 00:19:22 +00:00
optim DOC fix momentum equation for nesterov 2022-05-04 20:40:21 +00:00
package [lint] upgrade mypy to latest version 2022-05-03 20:51:34 +00:00
profiler [pytorch][cupti profiler 6/n] Changes to configure Kineto cupti profiler from pytorch profiler interface (#75616) 2022-04-20 22:19:54 +00:00
quantization [quant][fx][improvement] Renamed default_affine_fixed_qparams_observer and default_symmetric_fixed_qparams_observer (#76637) 2022-05-04 02:39:20 +00:00
sparse
special
testing Deprecate torch.lu 2022-05-05 19:17:11 +00:00
utils Fix issue with _checkpoint_without_reentrant 2022-05-05 17:37:31 +00:00
__config__.py
__future__.py
__init__.py Allow users to override kernels for existing C++ ops through Python 2022-05-05 03:31:39 +00:00
_appdirs.py
_classes.py
_deploy.py [lint] upgrade mypy to latest version 2022-05-03 20:51:34 +00:00
_jit_internal.py
_linalg_utils.py
_lobpcg.py remove inverse from LOBPCG 2022-04-20 19:03:00 +00:00
_lowrank.py
_namedtensor_internals.py
_ops.py Return all overloads for an operator in _jit_get_operation 2022-05-04 23:49:47 +00:00
_python_dispatcher.py Lint fix 2022-05-05 05:52:40 +00:00
_six.py
_sources.py
_storage_docs.py
_tensor_docs.py stft: remove non-center overload and python functional wrapper 2022-05-03 14:30:35 +00:00
_tensor_str.py Support str for compressed sparse tensors 2022-05-04 03:32:52 +00:00
_tensor.py stft: remove non-center overload and python functional wrapper 2022-05-03 14:30:35 +00:00
_torch_docs.py Deprecate torch.lu 2022-05-05 19:17:11 +00:00
_utils_internal.py
_utils.py Add "mps" device to PyTorch framework. 2022-04-27 19:21:57 +00:00
_VF.py
_vmap_internals.py
abi-check.cpp
CMakeLists.txt [Reland take-2] Add JIT graph fuser for oneDNN Graph API (v0.5) 2022-05-05 16:57:03 +00:00
custom_class_detail.h
custom_class.h
deploy.h
extension.h
functional.py Deprecate torch.lu 2022-05-05 19:17:11 +00:00
hub.py Add type hints for a few random functions/classes 2022-05-04 13:53:00 +00:00
library.h Allow users to override kernels for existing C++ ops through Python 2022-05-05 03:31:39 +00:00
library.py Minor follow up fixes for python registration 2022-05-05 13:46:48 +00:00
overrides.py Add linalg.lu_solve 2022-05-05 19:02:13 +00:00
py.typed
quasirandom.py
random.py
README.txt
return_types.py Register torch.return_types.* as pytree nodes 2022-04-19 13:46:20 +00:00
script.h
serialization.py
storage.py
torch_version.py
types.py

Note [TH abstraction violation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TH/THC provide some hpp headers, which are proper C++ headers rather than
C headers.  These headers serve double duty as *internal implementation
detail* headers, whose contents should largely not be used by external
clients.

Ideally, we would not install these headers at all; instead, you should
use public functions (in headers like `THTensor.h`, NOT `THTensor.hpp`)
to manipulate these structs.  However, there are a few places
in torch/csrc where we violate this abstraction.  They are marked with
a pointer to this note.  Each of those sites will have to be refactored
when we refactor the guts of THTensor and related structures.