Skip to content

Conversation

@eurunuela
Copy link
Contributor

Closes #9736.

This PR:

  • Adds the edge_weight parameter to the nn.models.GraphUNet model's forward function, so that users can provide an initial weights vector.
  • Makes edge_weight default to None.
  • Initializes edge_weight to ones if it is None. This ensures functionality stays the same by default.
  • If edge_weight is given by the user, its size is checked before running any of the code.

@rusty1s rusty1s changed the title [ENH] Allow users to pass edge_weights to GraphUNet model [ENH] Allow users to pass edge_weight to GraphUNet model Oct 28, 2024
@rusty1s rusty1s merged commit 78e3f39 into pyg-team:master Oct 28, 2024
19 checks passed
@eurunuela
Copy link
Contributor Author

Hi @rusty1s,

Thanks for looking into this. However, I don't think the PR was ready to be merged (my bad for making it ready on GitHub). There is an issue where the multiplication of the adjacency matrix with itself doesn't work because it is a sparse matrix. I will open a new issue with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass edge weights/attributes to GraphUNet

2 participants