Replies: 1 comment 1 reply
-
One approach would be to use torch.nonzero
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a matrix as follows:
I want to convert this to the edge index and edge attribute for GNN. So for example for edge [1,2] I want the attribute to be 7. I am not sure how to go about this in pyotrch.
Beta Was this translation helpful? Give feedback.
All reactions