Skip to content
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

object-oriented handling of heterograph without subclassing #13

Open
yuanqing-wang opened this issue May 26, 2020 · 0 comments
Open

object-oriented handling of heterograph without subclassing #13

yuanqing-wang opened this issue May 26, 2020 · 0 comments
Assignees

Comments

@yuanqing-wang
Copy link
Member

https://discuss.dgl.ai/t/subclass-dgl-heterograph/997/3

Subclassing dgl.DGLHeteroGraph is not recommended. For now, I will simply put heterographs as attributes of espaloma.HeterogeneousGraph and thereby enabling message passing by grammar like:

g = espaloma.HeterogeneousGraph(...)
GN = espaloma.nn.SomeModel
GN(g._graph)

since modification of DGLHeterograph could be in-place.

The reasoning behind this is to make parametrization and energy evaluation semantics simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants