Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: symeig deprication #627

Merged
merged 2 commits into from
Mar 21, 2023
Merged

Conversation

kfir4444
Copy link
Contributor

This PR fixes an issue with torch.symeig, which is now deprecated. Instead, it is suggested to work with torch.linalg.eigh

Copy link
Contributor

@yueyericardo yueyericardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixing!

torchani/ase.py Outdated
@@ -6,6 +6,7 @@
"""

import torch
import numpy as np
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import numpy as np

torchani/ase.py Outdated Show resolved Hide resolved
torchani/utils.py Outdated Show resolved Hide resolved
This causes:
RuntimeError: This function was deprecated since version 1.9 and is now removed. Please use the `torch.linalg.eigh` function instead.
This raises:
Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor.
@kfir4444
Copy link
Contributor Author

Thanks for the comments @yueyericardo,
they are fixed and ready for another review 😄

Copy link
Contributor

@yueyericardo yueyericardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yueyericardo yueyericardo merged commit 40cf334 into aiqm:master Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants