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

Make GNNWrapper forward call to backbone compatible with **kwargs #126

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

abertics
Copy link
Contributor

Description

Quick fix to enable **kwargs in gnn wrapper backbone forward calls.

Issue

The forward call in GNNWrapper changed to include three arguments -- x_0, edge_index and edge_weight. It used to be just the first two. To ensure future compatibility, I changed the third one to use a keyword to be compatible with **kwargs. Otherwise all forward backbone functions will need to explicitly accept edge_weight, even if they don't need it.

Copy link
Collaborator

@gbg141 gbg141 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@gbg141 gbg141 merged commit 3c31574 into geometric-intelligence:main Dec 18, 2024
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants