How could I compute the powers of adjacency matrix efficiently in PyG? #4557
Answered
by
Kousaka-Honoka
Kousaka-Honoka
asked this question in
Q&A
-
I didn't see the multiplication of sparse tensor in pytorch document, so are there any approaches in PyG that could I implement this operation? |
Beta Was this translation helpful? Give feedback.
Answered by
Kousaka-Honoka
Apr 28, 2022
Replies: 1 comment 1 reply
-
Well, the SparseTensor in torch_sparse is different from torch.sparse.tensor, and I found It supports @ operator, which can compute the powers of adjacency matrix iteratively |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kousaka-Honoka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, the SparseTensor in torch_sparse is different from torch.sparse.tensor, and I found It supports @ operator, which can compute the powers of adjacency matrix iteratively