Open
Conversation
Member
Author
|
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. |
Member
|
It seems like some of the additional tests are failing on this at the moment? |
Member
Author
|
Yeah I'm not sure what's changed here. The |
Member
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
replicateis 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.