5f18f240de
Add initial suppressions for pyrefly ( #164177 )
...
Adds suppressions to pyrefly will typecheck clean: https://github.com/pytorch/pytorch/issues/163283
Test plan:
`python3 scripts/lintrunner.py`
`pyrefly check`
---
Pyrefly check before: https://gist.github.com/maggiemoss/3a0aa0b6cdda0e449cd5743d5fce2c60
After:
```
INFO Checking project configured at `/Users/maggiemoss/python_projects/pytorch/pyrefly.toml`
INFO 0 errors (1,063 ignored)
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164177
Approved by: https://github.com/Lucaskabela
2025-10-02 20:57:41 +00:00
d6b74568e2
Revert "Add __init__.pyi to torch/linalg ( #160750 )"
...
This reverts commit 9a665ca3c472384e9d722bddba79e5a7680f1abd.
Reverted https://github.com/pytorch/pytorch/pull/160750 on behalf of https://github.com/jeanschmidt due to Seems that those errors are legitimate, and there is no test plan. I'll be proceeding with a revert ([comment](https://github.com/pytorch/pytorch/pull/160750#issuecomment-3246095383 ))
2025-09-02 16:53:55 +00:00
9a665ca3c4
Add __init__.pyi to torch/linalg ( #160750 )
...
Fixes #149639
In an effort to improve the type checking coverage, added a stub file for the torch/linalg directory.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/160750
Approved by: https://github.com/Skylion007
2025-08-31 22:39:05 +00:00
65a5eb8d27
Fix for ambiguity in linalg.norm()'s ord argument of +2 & -2 ( #155148 )
...
Fixes #136453
### Description
---
Fixed the ambiguity by referencing a hyperlink to wikipedia's SVD/Singular Values section as per past discussion (by other contributors) on the above thread.
In the ord argument, for values `+2` and `-2`, the `singular value` now points to [this section of singular values on the wiki SVD page](https://en.wikipedia.org/wiki/Singular_value_decomposition#Singular_values,_singular_vectors,_and_their_relation_to_the_SVD ).
### Why not mention SVD
---
For conciseness (expanding 'largest singular value' -> 'largest singular value of a SVD' is too much, i think, wrt rest of the table)
---
I hope this is satisfactory. Please let me know if I have missed anything essential; cheers.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/155148
Approved by: https://github.com/Skylion007 , https://github.com/lezcano
2025-06-04 21:15:20 +00:00
e2f9759bd0
Fix broken URLs ( #152237 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/152237
Approved by: https://github.com/huydhn , https://github.com/malfet
2025-04-27 09:56:42 +00:00
59f14d19ae
Implement gradient for the residuals
of torch.linalg.lstsq
( #148526 )
...
Fixes #147543 .
I have written some tests in python using `gradcheck`. Please advise where I should put these tests.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/148526
Approved by: https://github.com/lezcano
2025-03-10 12:35:09 +00:00
5c4545f857
[BE][Easy] enable PYFMT for torch/[a-s]*/
( #138447 )
...
Reproduce command:
```bash
ghstack checkout https://github.com/pytorch/pytorch/pull/138447
git checkout HEAD~1 torch/
lintrunner -a --take "PYFMT" --all-files
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/138447
Approved by: https://github.com/ezyang
2024-12-23 14:04:00 +00:00
eff99a4b4b
fix linalg.SVD docs typo: wrong V* shape in reduced SVD ( #142037 )
...
https://en.wikipedia.org/wiki/Singular_value_decomposition#Reduced_SVDs
in reduced SVD
V* shape is (n, k)
V shape is (n, k)
in docs it was wrong
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/142037
Approved by: https://github.com/lezcano
2024-12-04 09:18:33 +00:00
80393c90b3
docs: clarify alias usage for x
parameter in vector_norm function ( #136921 )
...
- Added a note in the documentation specifying that the `input` parameter can be used as an alias for `x`.
Fixes #136560
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136921
Approved by: https://github.com/ezyang
Co-authored-by: Edward Z. Yang <ezyang@meta.com >
2024-09-30 02:50:06 +00:00
76710d4f95
Corrected docstring of `solve_triangular
` ( #129766 )
...
**Description**
The arguments docstring of [torch.linalg.solve_triangular](https://pytorch.org/docs/stable/generated/torch.linalg.solve_triangular.html#torch.linalg.solve_triangular ) incorrectly describes the shape of the ``A`` argument if the option ``left=True``.
The argument ``A`` should have shape $k \times k$ if ``left=False`` in line with the rest of the docstring and the implementation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129766
Approved by: https://github.com/lezcano
2024-09-02 13:30:30 +00:00
b567ca0f51
Remove unused imported names in python files ( #134438 )
...
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/134438
Approved by: https://github.com/zou3519
2024-08-27 20:44:04 +00:00
90c821814e
SparseCsrCUDA: cuDSS backend for linalg.solve ( #129856 )
...
This PR switches to cuDSS library and has the same purpose of #127692 , which is to add Sparse CSR tensor support to linalg.solve.
Fixes #69538
Minimum example of usage:
```
import torch
if __name__ == '__main__':
spd = torch.rand(4, 3)
A = spd.T @ spd
b = torch.rand(3).to(torch.float64).cuda()
A = A.to_sparse_csr().to(torch.float64).cuda()
x = torch.linalg.solve(A, b)
print((A @ x - b).norm())
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129856
Approved by: https://github.com/amjames , https://github.com/lezcano , https://github.com/huydhn
Co-authored-by: Zihang Fang <zhfang1108@gmail.com >
Co-authored-by: Huy Do <huydhn@gmail.com >
2024-08-22 07:57:30 +00:00
b0fc6aa412
fix a typo in the householder_product docs ( #124279 )
...
The function argument is A, not V.
Remaining inconsistency is the matrix $A$ with columns $v_i$.
It seems, a better solution would be to rename the argument $A \rightarrow V$, but this might lead to backward compatibility issues.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/124279
Approved by: https://github.com/lezcano
2024-08-15 09:34:17 +00:00
39cf2f8e66
Added sorting notes for eig/eigvals ( #127492 )
...
Fixes #58034
@lezcano , Added suggested comments for eig and eigvals in the documentation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127492
Approved by: https://github.com/lezcano , https://github.com/kit1980
2024-05-30 18:13:22 +00:00
a8574a9719
Fix global flake8 issues ( #124771 )
...
Prior to this `lintrunner --all-files --take FLAKE8` failed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/124771
Approved by: https://github.com/Skylion007
ghstack dependencies: #124428
2024-04-26 15:35:53 +00:00
1ac60484c1
Revert "Fix global flake8 issues ( #124771 )"
...
This reverts commit f01275934bfa1ff358b1c01d3754f2807cd04ee2.
Reverted https://github.com/pytorch/pytorch/pull/124771 on behalf of https://github.com/jeanschmidt due to Unfortunately, I needed to revert #123735 and this one depends on it. So please check if there are no merge conflicts or breakages and feel free to merge this PR again ([comment](https://github.com/pytorch/pytorch/pull/124428#issuecomment-2078699836 ))
2024-04-26 06:15:17 +00:00
f01275934b
Fix global flake8 issues ( #124771 )
...
Prior to this `lintrunner --all-files --take FLAKE8` failed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/124771
Approved by: https://github.com/Skylion007
ghstack dependencies: #124428
2024-04-25 14:25:00 +00:00
8a5a377190
Move doc links to point to main ( #121823 )
...
The previous links were pointing to an outdated branch
Command: `find . -type f -exec sed -i "s:docs/main:docs/master:g" {} + `
Pull Request resolved: https://github.com/pytorch/pytorch/pull/121823
Approved by: https://github.com/albanD , https://github.com/malfet
2024-03-15 19:49:37 +00:00
c253d1c1db
Add links to _ex variants in all linalg functions that support them ( #121451 )
...
Fixes https://github.com/pytorch/pytorch/issues/96632
Pull Request resolved: https://github.com/pytorch/pytorch/pull/121451
Approved by: https://github.com/ezyang
2024-03-08 12:19:16 +00:00
54bac042e7
Fix error in examples of torch.linalg.lu_factor
( #120484 )
...
Found an error in the doc of `torch.linalg.lu_factor` related to `torch.linalg.lu_solve`. Also fix a sphinx issue by the way.
```Python traceback
TypeError: linalg_lu_solve(): argument 'LU' (position 1) must be Tensor, not torch.return_types.linalg_lu_factor
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120484
Approved by: https://github.com/lezcano
2024-02-23 13:19:04 +00:00
e36dacaeed
[Docs] fix typo in example of torch.linalg.solve_triangular
( #112361 )
...
Fixes #112359
Pull Request resolved: https://github.com/pytorch/pytorch/pull/112361
Approved by: https://github.com/IvanYashchuk
2023-10-30 10:33:14 +00:00
eab57145ab
fix matrix_power documentation bug ( #108585 )
...
The torch.linalg.matrix_power documentation suggests using the formula
`matrix_power(torch.linalg.solve(A, B), n) == matrix_power(A, -n) @ B`
to avoid negative matrix powers. But the ordering of the left side is not correct. This patch fixes it to:
`torch.linalg.solve(matrix_power(A, n), B) == matrix_power(A, -n) @ B`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108585
Approved by: https://github.com/lezcano
2023-09-05 22:08:46 +00:00
ca7249b80a
Remove duplicate sentences in description of torch.linalg.eig ( #108230 )
...
This removes nearly identical sentences in the description of `torch.linalg.eig` describing the checks in the backward pass by @lezcano
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108230
Approved by: https://github.com/lezcano
2023-08-30 13:16:04 +00:00
6bfb4f7c4b
[CUDA][Linalg} Patch crash of linalg.eigh
when input matrix is ill-conditioned, in some cusolver version ( #107082 )
...
Related: https://github.com/pytorch/pytorch/issues/94772 , https://github.com/pytorch/pytorch/issues/105359
I can locally reproduce this crash with pytorch 2.0.1 stable pip binary. The test already passes with the latest cuda 12.2 release.
Re: https://github.com/pytorch/pytorch/issues/94772#issuecomment-1658909998
> From discussion in triage review:
- [x] we should add a test to prevent regressions
- [x] properly document support wrt different CUDA versions
- [x] possibly add support using MAGMA
Pull Request resolved: https://github.com/pytorch/pytorch/pull/107082
Approved by: https://github.com/lezcano
2023-08-16 21:15:15 +00:00
71d18f6105
[DocString] Fix incorrect api Examples ( #105911 )
...
Fix incorrect Examples in `torch.linalg.tensorinv`.
- before (bug) : `torch.linalg.inverse`
- after: `torch.linalg.inv`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105911
Approved by: https://github.com/lezcano
2023-07-25 13:03:06 +00:00
79c5e33349
[BE] Enable ruff's UP rules and autoformat nn/ mps/ and torch/ ( #105436 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105436
Approved by: https://github.com/malfet , https://github.com/albanD
2023-07-21 07:38:46 +00:00
89fcfc1b8c
[Doc] linalg.ldl_factor: render the Shape of tensor A ( #99777 )
...
Summary: Fix : #96864
Test Plan: Please see GitHub tests.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99777
Approved by: https://github.com/lezcano
2023-06-28 09:28:45 +00:00
72908e768e
Fix Math Typesetting for torch.linalg.matrix_exp ( #101363 )
...
Fixes current the matrix_exp documentation typesetting which has an unescaped underscore.
It currently looks like this
<img width="540" alt="image" src="https://github.com/pytorch/pytorch/assets/3844846/cbff79c3-8c1a-4003-bee3-c4c97ae0e3a0 ">
With the fix, it looks like this
<img width="555" alt="image" src="https://github.com/pytorch/pytorch/assets/3844846/a24d9a3f-bbbd-4685-9244-2bc06872b966 ">
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101363
Approved by: https://github.com/lezcano
2023-05-15 00:31:12 +00:00
0210d508cc
Fix terminology within linalg.slogdet
docs ( #91129 )
...
This issue was raised in https://github.com/data-apis/array-api/pull/567
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91129
Approved by: https://github.com/kit1980
2022-12-20 01:55:27 +00:00
591dfffa38
update docstring for torch.linalg.lstsq ( #89383 )
...
Previous documentation lacked details about the handling of over- and underdetermined systems, and made incorrect mention of MAGMA.
Fixes #85021
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89383
Approved by: https://github.com/lezcano
2022-11-25 21:31:53 +00:00
92c78f37af
improving torch.linalg.lstsq documentation formatting ( #89013 )
...
Fixes #80441
The highlighting in the documentation for torch.linalg.lstsq was incorrect due to a newline that sphinx doesn't parse correctly. Instead of writing the tensors directly, I used randn to generate the tensors. This seems to be more consistent with how other documentation is written.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89013
Approved by: https://github.com/lezcano
2022-11-14 23:58:46 +00:00
2ddefbdc3c
Fix typos used in documents under torch directory ( #88300 )
...
This PR fixes typos, in comments of Python files, that are found from a search box at https://pytorch.org/docs/master/search.html
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88300
Approved by: https://github.com/lezcano
2022-11-02 09:38:13 +00:00
0bdcfcb840
Strenghten preconditions of linalg.cross ( #83798 )
...
This makes `linalg.cross` array API complaint (https://github.com/data-apis/array-api/issues/415 ) and fixes a few bugs.
Fixes https://github.com/pytorch/pytorch/issues/77629
Fixes https://github.com/pytorch/pytorch/issues/83756
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83798
Approved by: https://github.com/mruberry
2022-08-24 15:17:12 +00:00
bbe803cb35
Revert "Strenghten preconditions of linalg.cross ( #83798 )"
...
This reverts commit 7f0198e7390eff2f2f5fcb33ce36c99ec3b7f55e.
Reverted https://github.com/pytorch/pytorch/pull/83798 on behalf of https://github.com/janeyx99 due to Sorry, land race caused functorch issues 7f0198e739
2022-08-23 19:36:43 +00:00
7f0198e739
Strenghten preconditions of linalg.cross ( #83798 )
...
This makes `linalg.cross` array API complaint (https://github.com/data-apis/array-api/issues/415 ) and fixes a few bugs.
Fixes https://github.com/pytorch/pytorch/issues/77629
Fixes https://github.com/pytorch/pytorch/issues/83756
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83798
Approved by: https://github.com/mruberry
2022-08-23 18:06:51 +00:00
8d091ca434
[docs] fix inconsistent default rcond
value ( #82887 )
...
The default `rcond` value is described as "the machine precision of the dtype of :attr:`A`" in the text (line 1043) but "the machine precision of the dtype of :attr:`A` times `max(m, n)`" in the `Args` section (line 1079). The correct value, according to [this issue](https://github.com/pytorch/pytorch/issues/82868 ) is ":attr:`A` times `max(m, n)`", so I'm updating the description to match.
### Description
<!-- What did you change and why was it needed? -->
### Issue
https://github.com/pytorch/pytorch/issues/82868
### Testing
<!-- How did you test your change? -->
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82887
Approved by: https://github.com/IvanYashchuk
2022-08-06 13:45:16 +00:00
e505796a2c
[Array API] Add linalg.vecdot ( #70542 )
...
This PR adds the function `linalg.vecdot` specified by the [Array
API](https://data-apis.org/array-api/latest/API_specification/linear_algebra_functions.html#function-vecdot )
For the complex case, it chooses to implement \sum x_i y_i. See the
discussion in https://github.com/data-apis/array-api/issues/356
Edit. When it comes to testing, this function is not quite a binopt, nor a reduction opt. As such, we're this close to be able to get the extra testing, but we don't quite make it. Now, it's such a simple op that I think we'll make it without this.
Resolves https://github.com/pytorch/pytorch/issues/18027 .
cc @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70542
Approved by: https://github.com/IvanYashchuk , https://github.com/mruberry
2022-07-12 14:28:54 +00:00
39f659c3ba
Revert "[Array API] Add linalg.vecdot ( #70542 )"
...
This reverts commit 74208a9c68b5892b9dde39d06350fe7b92691429.
Reverted https://github.com/pytorch/pytorch/pull/70542 on behalf of https://github.com/malfet due to Broke CUDA-10.2 for vecdot_bfloat16, see 74208a9c68
2022-07-08 22:56:51 +00:00
74208a9c68
[Array API] Add linalg.vecdot ( #70542 )
...
This PR adds the function `linalg.vecdot` specified by the [Array
API](https://data-apis.org/array-api/latest/API_specification/linear_algebra_functions.html#function-vecdot )
For the complex case, it chooses to implement \sum x_i y_i. See the
discussion in https://github.com/data-apis/array-api/issues/356
Edit. When it comes to testing, this function is not quite a binopt, nor a reduction opt. As such, we're this close to be able to get the extra testing, but we don't quite make it. Now, it's such a simple op that I think we'll make it without this.
Resolves https://github.com/pytorch/pytorch/issues/18027 .
cc @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70542
Approved by: https://github.com/IvanYashchuk , https://github.com/mruberry
2022-07-08 15:37:58 +00:00
19f3d4d795
Expose linalg.solve_ex ( #80073 )
...
This prepares for making `linalg.inv_ex` just a call into this function
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80073
Approved by: https://github.com/IvanYashchuk , https://github.com/albanD
2022-07-01 16:09:23 +00:00
37a5819665
Make slogdet, linalg.sloget and logdet support metatensors ( #79742 )
...
This PR also adds complex support for logdet, and makes all these
functions support out= and be composite depending on one function. We
also extend the support of `logdet` to complex numbers and improve the
docs of all these functions.
We also use `linalg_lu_factor_ex` in these functions, so we remove the
synchronisation present before.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79742
Approved by: https://github.com/IvanYashchuk , https://github.com/albanD
2022-07-01 16:09:21 +00:00
54949a5abc
Simplify and optimize linalg.solve
...
This PR heavily simplifies the code of `linalg.solve`. At the same time,
this implementation saves quite a few copies of the input data in some
cases (e.g. A is contiguous)
We also implement it in such a way that the derivative goes from
computing two LU decompositions and two LU solves to no LU
decompositions and one LU solves. It also avoids a number of unnecessary
copies the derivative was unnecessarily performing (at least the copy of
two matrices).
On top of this, we add a `left` kw-only arg that allows the user to
solve `XA = B` rather concisely.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74046
Approved by: https://github.com/nikitaved , https://github.com/IvanYashchuk , https://github.com/mruberry
2022-06-11 04:06:40 +00:00
f7b9a46880
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/77636
Approved by: https://github.com/malfet
2022-06-07 22:50:14 +00:00
f091b3fb4b
Update torch.lu_unpack docs
...
As per title
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77635
Approved by: https://github.com/malfet
2022-06-07 22:50:13 +00:00
c7d6cec078
Add linalg.lu_solve
...
This PR adds `linalg.lu_solve`. While doing so, I found a bug in MAGMA
when calling the batched MAGMA backend with trans=True. We work around
that by solving the system solving two triangular systems.
We also update the heuristics for this function, as they were fairly
updated. We found that cuSolver is king, so luckily we do not need to
rely on the buggy backend from magma for this function.
We added tests testing this function left and right. We also added tests
for the different backends. We also activated the tests for AMD, as
those should work as well.
Fixes https://github.com/pytorch/pytorch/issues/61657
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77634
Approved by: https://github.com/malfet
2022-06-07 22:28:28 +00:00
d136852bda
[CUDA][Linalg] Add a driver=
kwarg to torch.linalg.svd
and svdvals
; add cusolver gesvdaStridedBatched driver to svd ( #74521 )
...
[CUDA][Linalg] Add a driver= kwarg to torch.linalg.svd and svdvals; add cusolver gesvdaStridedBatched driver to svd
cusolver doc: https://docs.nvidia.com/cuda/cusolver/index.html#cuSolverDN-lt-t-gt-gesvda
Todo:
- [X] add cusolver `gesvdaStridedBatched` driver
- [X] add `driver=` kwarg to `torch.linalg.svd` and `torch.linalg.svdvals`
- [X] doc
- [X] error out (?) on other non-cusolver use cases: CPU, MAGMA
- [X] change svd api in `torch/csrc/api/include/torch/linalg.h` ?
Close https://github.com/pytorch/pytorch/issues/41306
Related https://github.com/pytorch/pytorch/issues/75494
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74521
Approved by: https://github.com/Lezcano , https://github.com/IvanYashchuk , https://github.com/mruberry
2022-05-31 16:11:53 +00:00
ff7b6d6b5f
Update linalg.*norm
...
This PR does a number of things:
- Move linalg.vector_norm to structured kernels and simplify the logic
- Fixes a number of prexisting issues with the dtype kwarg of these ops
- Heavily simplifies and corrects the logic of `linalg.matrix_norm` and `linalg.norm` to be consistent with the docs
- Before the `_out` versions of these functions were incorrect
- Their implementation is now as efficient as expected, as it avoids reimplementing these operations whenever possible.
- Deprecates `torch.frobenius_norm` and `torch.nuclear_norm`, as they were exposed in the API and they are apparently being used in mobile (??!!) even though they were not documented and their implementation was slow.
- I'd love to get rid of these functions already, but I guess we have to go through their deprecation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76547
Approved by: https://github.com/mruberry
2022-05-18 11:46:50 +00:00
4ebc4890dd
Revert "Add linalg.lu_solve"
...
This reverts commit fc5b4a5a33f1906ca335c26ec4da9357ed196419.
Reverted https://github.com/pytorch/pytorch/pull/72935 on behalf of https://github.com/malfet
2022-05-09 19:12:30 +00:00
4ceac49425
Revert "Update torch.lu_unpack docs"
...
This reverts commit 9dc8f2562f2cb5d77d23fc4829f36c0ac024f1c3.
Reverted https://github.com/pytorch/pytorch/pull/73803 on behalf of https://github.com/malfet
2022-05-09 19:09:43 +00:00
1467e0dd5d
Revert "Deprecate torch.lu"
...
This reverts commit a5bbfd94fb91c078416a99b95eb7b45d3ea81b6f.
Reverted https://github.com/pytorch/pytorch/pull/73804 on behalf of https://github.com/malfet
2022-05-09 19:06:44 +00:00