Making heterogeneous graph classification models #7665
aauricchio
started this conversation in
General
Replies: 1 comment 1 reply
-
We don‘t have any examples for this since I am I think your example looks good, but you are missing a global pooling. Currently, your model returns a dictionary of node features while it needs to return a single tensor. One way to achieve this would be to run out = sum(global_mean_pool(x_dict[v], batch_dict[v]) for v in data.node_types)) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am currently trying to make a heterogenous graph classification model with a dataset of 1000 graphs. I haven't been able to find any examples of this online, and I get the error "RuntimeError: mat1 and mat2 must have the same dtype". The datatype of the
x
in theforward
method is "Proxy(getattr_1)", and I am unsure of what this means. Any help would be greatly appreciated.Any help would be really appreciated! Thank you in advance.
An example of one of the graphs is below:
dataset[0]
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions