-
Notifications
You must be signed in to change notification settings - Fork 18
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
getNeighborPairs
compute the displacement vector
#61
Conversation
raimis
commented
Jul 7, 2022
•
edited
Loading
edited
- Compute the vector
- CPU
- Forward pass
- CUDA
- Forward pass
- Backward pass
- CPU
- Update tests
- Update documentation
@peastman can you review? |
|
@davkovacs I have built a conda package from the latest commit (32eeae5).
Let me know if it works as you wished and I'll finish the PR. |
Would it work with PyTorch 1.12? We want to compile our models with torchscript to create the TorchForce object, but have some operations that can only be compiled with the latest PyTorch. |
At the moment, If you want PyTorch 1.12, you have to build from the source. |
I am going on holiday now, so I will not be able to test this thoroughly for the next couple of weeks. But will be one of the first things when I am back. |
|
For CUDA, I write the backward pass explicitly. For CPU, the backward pass is implicit and relies on the autograd. So, two independent implementation of gradients agree. This should be enough to prove correctness. |
Ok, that makes sense. |
@davkovacs |