Skip to content

Add support for Torch which is needed by NequIP#2420

Merged
oschuett merged 1 commit intocp2k:masterfrom
oschuett:nequip
Nov 30, 2022
Merged

Add support for Torch which is needed by NequIP#2420
oschuett merged 1 commit intocp2k:masterfrom
oschuett:nequip

Conversation

@oschuett
Copy link
Member

This adds a generic Fortran wrapper for PyTorch's C++ API.

An alternative would have been to use pytorch-fortran, but it currently does not support dictionaries and it pulls in a full Python interpreter via pybind11.

@gabriele16, the nequip_unittest.F should be equivalent to your example. I also took the liberty of including your water model. I hope this is ok?

@oschuett oschuett merged commit fcb0f64 into cp2k:master Nov 30, 2022
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