-
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
equistore operation dot does not support gradients #100
Comments
The second tensor map is the "weights" in |
Ah I see, I feel like this operation alone is too limiting, but I need to think about this more. Seems to be far from trivial to extend it in an understandable way. But regarding this issue, could we just add a bit of documentation for this? like this one
|
Adding more documentation works for me! |
Should I do a separate PR for this? Seems it could be also added to #91 |
This is more about API documentation than user tutorials/explanation, so I would do it in a quick separate PR. |
Imo adding support for gradients shouldn't be too hard. If B does not have gradients, then |
Is there a reason why it is not supported? Because the error message specifically talks about the second tensor map
https://github.com/lab-cosmo/equistore/blob/e65cd07d2f0d5aefa41a7b2beade835b9b1dc03b/python/src/equistore/operations/dot.py#L49
and then the values and gradients are dotted together
https://github.com/lab-cosmo/equistore/blob/e65cd07d2f0d5aefa41a7b2beade835b9b1dc03b/python/src/equistore/operations/dot.py#L63
I cannot make sense out of it
The text was updated successfully, but these errors were encountered: