Skip to content

FR: Support complex eigenvalue autograd #51621

@zzxihuanheixiu

Description

@zzxihuanheixiu

The error information is as follows:
RuntimeError: eig_ backward: Backward calculation does not support complex eigenvalues at the moment.

The details are as follows:
One step in my loss function is to calculate the eigenvalues of the matrix. I used the torch.eig function, but later when I used the reverse derivation of the loss function, the program was stuck in the position of the torch.eig function, because sometimes the matrix has complex eigenvalues. Under what circumstances, the torch.eig function does not support reverse derivation! How can I solve it???

Please help me!!!

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @anjali411 @dylanbespalko @mruberry @jianyuh @heitorschueroff @walterddr @IvanYashchuk

Metadata

Metadata

Assignees

Labels

complex_autogradmodule: autogradRelated to torch.autograd, and the autograd engine in generalmodule: complexRelated to complex number support in PyTorchmodule: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmultriagedThis 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