mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 21:49:24 +08:00
Remove deprecated torch.eig (#70982)
The time has come to remove deprecated linear algebra related functions. This PR removes `torch.eig`. cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano Pull Request resolved: https://github.com/pytorch/pytorch/pull/70982 Approved by: https://github.com/Lezcano, https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
c4a5255df7
commit
01c54ad6de
@ -638,6 +638,11 @@ class Tensor(torch._C._TensorBase):
|
||||
|
||||
return solve(self, other)
|
||||
|
||||
def eig(self, eigenvectors=False):
|
||||
from ._linalg_utils import eig
|
||||
|
||||
return eig(self, eigenvectors=eigenvectors)
|
||||
|
||||
def lu(self, pivot=True, get_infos=False):
|
||||
r"""See :func:`torch.lu`"""
|
||||
# If get_infos is True, then we don't need to check for errors and vice versa
|
||||
|
Reference in New Issue
Block a user