Replies: 1 comment 2 replies
-
This is interesting. Thanks for reporting. Will look into supporting this soon :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to apply a graph pooling layer to a heterogeneous Sequential model. The PyTorch Geometric Sequential class provides an example for applying such a graph pooling layer (below), but I run into an error when I convert the model to a heterogeneous model with the
torch_geometric.nn.to_hetero
transformer.Graph pooling:
Transform to_hetero:
Where data consists of a
HeteroData
object with multiple node & edge types, e.g.:Error:
I'm assuming the error has to be related to the batch argument, which in the case of a heterogeneous model is a dictionary consisting of the node types as keys and the node type's batch tensor as items. In a homogeneous graph the batch object will be just a tensor.
Is it at all possible to apply graph pooling to a heterogeneous model? If so, how do I do this?
Beta Was this translation helpful? Give feedback.
All reactions