Selecting subset of edge indices #3774
Answered
by
wsad1
ahmedramly
asked this question in
Q&A
-
I have a question about selecting a subset of edge indices. I have the following situation, I have
It is a naive question but I am kinda stuck with it for a while. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
wsad1
Dec 29, 2021
Replies: 1 comment 4 replies
-
One way to do this is as follows.
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ahmedramly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One way to do this is as follows.
torch.cartesian_prod(torch.arange(196), torch.arange(196)).T
create a fully connected graph.