Open davidnarganes opened 1 year ago
I think in this case you should just set add_self_loops
to False
. Even if the graph is bipartite, there exists scenarios were we still want to add self-loops (e.g., in a hierarchical neighbor sampling scenario). I prefer to keep this explicit.
📚 Describe the documentation issue
Hi,
This line: https://github.com/pyg-team/pytorch_geometric/blob/master/torch_geometric/nn/conv/gatv2_conv.py#L230
Is there any way to add self-loops only when the graph has a unique entity type? I do not want to add self-loops when the graph is bipartite. Something like:
Thanks.
Suggest a potential alternative/fix
No response