-
Assuming my model consists of CNN and GCN, the graphs are generated using the CNN output, for example:
So the graph (edge_index) is genereted by the front part of the network, but it is different to utilize "Data" class to implemente the edge and x with it in the "forward" function. In addition, it is different to utilize the gcn in a mini-batch since the graphs in a batch (the generated graphs by the cnn in a batch) should be concatenated into a big graph. So I am confused if the graphs is generated in a dynamical way such as the front network, how to implement it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you share a bit more detail here about input features and the GNN part? It looks like your |
Beta Was this translation helpful? Give feedback.
The dense GNN layers support
[batch_size, num_nodes, num_nodes]
tensors, so you can directly use them. If you wanna do sparse message passing viaedge_index
, you can do