-
Notifications
You must be signed in to change notification settings - Fork 37
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
In graph_network.py of gns module, it seems that the class InteractionNetwork does not update edge features. #92
Comments
Thank you for leaving the comment. The edge feature is first updated in the message function. The update function does not update the edge feature, but takes in the updated edge feature computed from the message function, and returns itself. |
Thx for your reply. However, the update function does not seem to take in the updated edge features but instead uses the initial edge features. According to the PyG documentation, these edge features are the ones initially passed to the propagate function, not the updated edge features computed from the message function. If it is as you said, could you please explain this? |
I found this in the PyG documentation. Based on their documentation, the |
Thx! I found this issue during the process of stepping into the debug of the class InteractionNetwork, i.e., the edge features in the |
Describe the bug
I checked the code of the class InteractionNetwork in graph_network.py and found that in the message function, the new edge_features are not used to update the original ones but are directly returned. This results in the update function still having the initial tensor for edge_features, causing the residual connection to simply double the original tensor.
To Reproduce
I instantiated this class separately to verify the issue. The code is as follows:
The outputs are as follows:
Expected behavior
Maybe you can use a member variable to store this tensor. Such as:
Additional context
Maybe the code is correct while I missed something, or I misunderstood the formulas in the paper. I would greatly appreciate it if you could respond as soon as possible.
The text was updated successfully, but these errors were encountered: