Skip to content

torch.symeig has been removed #1

Description

@remmel

The code is using an unexisting anymore pytorch function

--> 357 _, eigen_vectors = torch.symeig(mat_a, eigenvectors=True)
This function was deprecated since version 1.9 and is now removed. Please use the torch.linalg.eigh function instead."

_, eigen_vectors = torch.symeig(mat_a, eigenvectors=True)

/content/gdrive/MyDrive/libs/SimpleSfm/simple_sfm/utils/geometry.py in average_quaternions(quaternions, weights, keepdim)
355 mat_a = torch.einsum('bni,bnj->bij', [quaternions * weights, quaternions])
356 # compute eigenvalues and -vectors
--> 357 _, eigen_vectors = torch.symeig(mat_a, eigenvectors=True)
358 max_value_eigenvector = eigen_vectors[..., -1].reshape(*batch_shape, 4)
359

/usr/local/lib/python3.10/dist-packages/torch/_linalg_utils.py in _symeig(input, eigenvectors, upper, out)
117 input, eigenvectors=False, upper=True, *, out=None
118 ) -> Tuple[Tensor, Tensor]:
--> 119 raise RuntimeError(
120 "This function was deprecated since version 1.9 and is now removed. Please use the torch.linalg.eigh function instead.",
121 )

Related with https://github.com/SamsungLabs/MLI/issues/14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions