Skip to content

Add complex autograd support for torch.symeig #53651

@anjali411

Description

@anjali411
>>> a = torch.randn(5, 5, dtype=torch.cdouble, requires_grad=True)
>>> a = (a + a.transpose(-2, -1).conj()).div_(2)
>>> e, v = torch.symeig(a, eigenvectors=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: symeig does not support automatic differentiation for outputs with complex dtype.

cc @ezyang @anjali411 @dylanbespalko @mruberry @aocsa

Metadata

Metadata

Assignees

Labels

complex_autogradmodule: complexRelated to complex number support in PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions