-
Hi, I'm working in a network that is composed by two graph conv branches. Branch one has as input (N, F) where N is the number of nodes and F number of features and outputs a graph (N, F'). The second branch is similar to the first one, but it has a different number of input nodes (M, F) and outputs (M, F'). After both branches I have a third branch that is also a graph conv branch that combines the outputs of both previous branches as it can be seen in the following picture: Currently what I am doing to combine both branches, is concatenate the node features, pos and batch vector of both batch structures. However, I am trying to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Yes, if you want to use arange = torch.arange(int(batch.max()) + 1, device=batch.device)
ptr = torch.bucketize(arange, batch) |
Beta Was this translation helpful? Give feedback.
Yes, if you want to use
segment_csr
, you will need to sort the matrices, and compute a newptr
tensor based on the sortedbatch
vector: