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

Move data to the right device in ModuleMap::forward #595

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

Luthaf
Copy link
Member

@Luthaf Luthaf commented Apr 30, 2024

Fix #554

This moves metatensor data to a new device when running forward(), ensuring ModuleMap can be used on non-cpu devices.

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

📚 Documentation preview 📚: https://metatensor--595.org.readthedocs.build/en/595/

Co-Authored-By: frostedoyster <bigi.f@libero.it>
Co-Authored-By: Alexander Goscinski <alex.goscinski@posteo.de>
@Luthaf Luthaf merged commit 4b2ad59 into metatensor:master Apr 30, 2024
24 of 25 checks passed
@Luthaf Luthaf deleted the move-to-device-forward branch April 30, 2024 13:25
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.

ModuleMap's handling of devices
2 participants