You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request: it'd be nice to have extend the functionality of Flux.outputsize to GNNChains. I imagine this could be applied to either a WithGraph or a GNNGraph and Tuple of inputsize. Here's a sketch of a MWE from the docs:
using Flux, Graphs, GraphNeuralNetworks
din, d, dout =3, 4, 2
g =rand_graph(10, 30)
X =randn(Float32, din, 10)
inputsize =size(X)
model =GNNChain(GCNConv(din => d),
BatchNorm(d),
x ->relu.(x),
GCNConv(d => d, relu),
Dropout(0.5),
Dense(d, dout))
wg =WithGraph(model, g)
@assert GraphNeuralNetworks.outputsize(model, g, inputsize) ==size(model(g,X))
@assert GraphNeuralNetworks.outputsize(wg, inputsize) ==wg(X)
The text was updated successfully, but these errors were encountered:
This is a feature request: it'd be nice to have extend the functionality of
Flux.outputsize
toGNNChain
s. I imagine this could be applied to either aWithGraph
or aGNNGraph
and Tuple ofinputsize
. Here's a sketch of a MWE from the docs:The text was updated successfully, but these errors were encountered: