-
Notifications
You must be signed in to change notification settings - Fork 51
message passing for multiple feature arrays #166
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
Comments
You just put all your features inside a named tuple: ndata = (a = rand(3, num_nodes), b = rand(3, num_nodes))
message(xi, xj, e)= xi.a .+ xj.b
propagate(message, g, +, xi=ndata, xj=ndata) Conversely, message functions can return named tuples as well. |
Sorry, I'm still confused about how it works. What is the keyword argument |
By the way, I found a typo in the doc:
Should it be
|
sorry, I thought we had that shortcut. I edited the comment.
thanks, fixed now! |
I see. I honestly think it would be a good idea if we have propagate(message, g, +, x=ndata)==propagate(message, g, +, xi=ndata, xj=ndata) since quite often we indeed have |
Hello and thank you for your excellent work!
If I have multiple feature arrays, how should I define a customized
message
function? I want to have something likeThis feature is available in
torch_geometric
. However, it seems like by design it is not possible inGraphNeuralNetworks.jl
but we have to concatenatex
andu
?The text was updated successfully, but these errors were encountered: