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

Fix ase_atoms_to_atom_graphs not respecting given flag for graph computation and add device parameter to graph computation functions. #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nimashoghi
Copy link

Previously, the passed device to the ase_atoms_to_atom_graphs was not being forwarded to the graph computation step, causing the graph computation to use the device output by get_device, regardless of the input device parameter. This has been fixed in this PR.

Enhances flexibility by allowing users to specify the device for tensor operations in edge feature calculation and graph computation. Defaults to GPU if available, maintaining existing behavior while enabling custom device selection.

Also, previously, the passed device to the `ase_atoms_to_atom_graphs` was not being forwarded to the graph computation step, causing the graph computation to use the device output by `get_device`, regardless of the input device parameter. This has been fixed as well.
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.

1 participant