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

extended GatedGraphConv and NNConv to use AbstactGNNGraph #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ghaithq
Copy link

@Ghaithq Ghaithq commented Feb 11, 2024

This is an attempt in solving #311 partially by extending both NNConv and GatedGraphConv.

@Ghaithq
Copy link
Author

Ghaithq commented Feb 12, 2024

Hi @CarloLucibello. Is this correct or did I misunderstand something?

@CarloLucibello
Copy link
Member

Thanks for this contribution! It would be nice to have some tests

@Ghaithq
Copy link
Author

Ghaithq commented Feb 13, 2024

Should I modify the already made tests for both NNConv and GatedGraphConv to use AbstactGNNGraph. or should I implement new tests. And I was planning on resolving the whole issue should I continue in the same manner?

@@ -589,7 +589,7 @@ end
# remove after https://github.com/JuliaDiff/ChainRules.jl/pull/521
@non_differentiable fill!(x...)

function (l::GatedGraphConv)(g::GNNGraph, H::AbstractMatrix{S}) where {S <: Real}
function (l::GatedGraphConv)(g::AbstractGNNGraph, H::AbstractMatrix{S}) where {S <: Real}
Copy link
Member

Choose a reason for hiding this comment

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

just this change is not enough to make this layer compatible with heterograph

Copy link
Author

Choose a reason for hiding this comment

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

Ok, could you tell me what I should add?

Copy link
Author

Choose a reason for hiding this comment

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

and is NNConv ok or should I also modify it?

@CarloLucibello
Copy link
Member

Should I modify the already made tests for both NNConv and GatedGraphConv to use AbstactGNNGraph. or should I implement new tests. And I was planning on resolving the whole issue should I continue in the same manner?

you can add tests here
https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/master/test/layers/heteroconv.jl

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