Replies: 1 comment 7 replies
-
Interesting. So it looks like you want to integrate edge-level features that are only available for supervision edges. Is that correct? What is the use-case of this? I think for now concatenating is a valid approach. Can you share an reproducible example of the error? This does not seem intended. |
Beta Was this translation helpful? Give feedback.
7 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.
-
Hey!
I'm working on an edge classification problem.
I'm using the
LinkNeighborLoader
to sample supervision edges and their corresponding labels.Since the supervision edges (defined by
edge_label_index
) are not necessarily part of the message passing edges (defined byedge_index
) I'm having a hard time adding their features.I tried concatenating them to the
edge_label
and extract them in the training loop but I got a "ValueError: only one element tensors can be converted to Python scalars", which I guess means the code assumes theedge_label
has 1-d.Maybe it could be beneficial to add a
label_edge_attr
parameter to theLinkNeighborLoader
.Can think of any workaround to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions