-
Notifications
You must be signed in to change notification settings - Fork 14
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
Graph AD for Forces #119
base: main
Are you sure you want to change the base?
Graph AD for Forces #119
Conversation
Another piece of good news is that there is very little involved for AD, for the most part we have refactored some functions and added a couple methods that would be good for Xtals.jl to have anyway. |
It seems like some of the additional tests are failing on this at the moment? |
Yeah I'm not sure what's changed here. The |
The way things are getting reorganized, this code will probably end up belonging in AtomGraphs (should be registered in a couple days) rather than here, JFYI |
dea0c7a
to
2b41b38
Compare
ref #111
x-ref: #111 (comment), #10
Okay, so we have the following working.
which are the gradients for the crystal and graph AD 🎉
Couple of notes:
replicate
is written with a lot of mutation, and I figured we could write a simpler version, so I did. How do we want to handle this? We could propose this change to Xtals.jl(the performance is roughly same, but of course this allocates)(this implementation is roughly 3x faster)I might have messed up the rebase, so I'll have to move this to a different PR.Also, we might have some performance on the table if we optimise this further going by the number of allocations.