Open chrisn-pik opened 1 year ago
Thank you for reporting. Currently, only MessagePassing
-based layers are supported as an edge-level submodule for to_hetero
. If any other modules are used (e.g., torch.nn.Module
), they will be treated as node-level submodules, which may result in unexpected errors.
Yeah, this should be fixable by letting TransformerObject
inherit from MessagePassing
.
🐛 Describe the bug
When using heterogeneous graphs and using TransformerConv in a submodul I get an error that indices in 'edge_index' are larger and invalid.
To reproduce this issue:
The problem does not occur if I call
TransformerConv(...)
instead ofTransformerObject(...)
by simply uncommenting the line.The error message:
Perhaps this issue is related to #6863
Environment