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

Stack Layers in a HeteroGraphConv Model #541

Closed
marthinkondjeni opened this issue Dec 5, 2024 · 1 comment
Closed

Stack Layers in a HeteroGraphConv Model #541

marthinkondjeni opened this issue Dec 5, 2024 · 1 comment

Comments

@marthinkondjeni
Copy link

How can do I stack a Dense layer or add more convolutional layers to the HeteroGraphConv layer in the code below?

using Flux

using GraphNeuralNetworks

using GNNGraphs

 g = rand_heterograph((:user => 10, :movie => 20), (:user, :rate, :movie) => 30)

x = (user = rand(Float32, 64, 10), movie = rand(Float32, 64, 20));

layer = HeteroGraphConv((:user, :rate, :movie) => GraphConv(64 => 32, relu))

y = layer(g, x)

@CarloLucibello
Copy link
Member

probably you want to define a struct representing your model and the corresponding forward pass. See https://juliagraphs.org/GraphNeuralNetworks.jl/graphneuralnetworks/guides/models/#Explicit-modeling

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

No branches or pull requests

2 participants