Skip to content

Gradient of forces with respect to positions #321

Answered by Linux-cpp-lisp
sigbjobo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sigbjobo ,

I think this should be addressed by #292 (comment). Please note that since that post the functorch / torch.autograd.functional APIs have evolved and matured somewhat, and there may be better / faster ways to do it, such as trying with vectorize=True.

I'd still be happy to accept a PR adding this and don't think it should be too much work. (Fair warning, 2nd derivatives in PyTorch were, at least last time I checked, not particularly fast.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sigbjobo
Comment options

@Linux-cpp-lisp
Comment options

Answer selected by sigbjobo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants