Translate a 1d convolution from Keras to Julia?

Where do GCNConv and GNNChain come from? Those are not standard Flux. The model here also seems to be very different from the one in the linked page? Looking through that page, they get a 3D array to pass through to the Conv1D layers whereas the first Conv layer here appears to be getting a 2D array.

Also:

Per the docs, you should be passing a tuple of length 1 for the kernel dimensions to run a 1D conv. So the above would be Flux.Conv((97,),1=>16,relu,stride=97). Likewise for the MaxPooling layers.

1 Like