Does the example of creating the GraphConv class by extending the MessagePassing base class correspond to the actual implementation of the GraphConv layer in the library? #9217
giuseppefutia
started this conversation in
General
Replies: 1 comment 1 reply
-
Yes, the two implementations are mostly equivalent. Modules in PyG are usually a bit advanced than basic than the models given in tutorials (e.g., they support different sparse tensor input formats, support TorchScript, etc). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
For using the GCNConv layer, I could extend the MessagePassing base class as shown here:
https://pytorch-geometric.readthedocs.io/en/latest/notes/create_gnn.html.
Or, I could use the actual implementation: https://pytorch-geometric.readthedocs.io/en/latest/generated/torch_geometric.nn.models.GCN.html.
Beyond the differences in terms of efficiency, are these implementations the same? So, should I expect the same result considering the same input features and weights?
I think that for training and learning purposes it could be helpful to show that the two implementations lead to the same result.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions