-
Notifications
You must be signed in to change notification settings - Fork 26
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
Matgl upgrade to 1.1.3 + CHGNet Integration #273
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the most part it looks good to me, but I wasn't 100% sure what you were referring to RE: the TensorNet forward copying changes?
@@ -0,0 +1,22 @@ | |||
encoder_class: | |||
class_path: matsciml.models.M3GNet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed this d436989
matsciml/models/dgl/chgnet.py
Outdated
Returns: | ||
torch.Tensor: Model output. | ||
""" | ||
# g.edata["pbc_offshift"] = g.edata["offsets"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you want to leave these in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purged em 991edef
Just that we have to copy-paste in the forward method for TensorNet (and CHGNet) since they dont offer the same interface as the M3GNet model where we can return the embeddings only with |
Please go ahead and merge! |
This PR takes over dependabot PR #269 and also includes the addition of CHGNet from
matgl
which was introduced inmatgl-v1.1.0
. The PR also includes updates toTensorNet
forward pass which still must be copied in manually.