Skip to content
Discussion options

You must be logged in to vote

edge_index needs to be transformed first into a dense adjacency matrix via utils.to_dense_adj. Alternatively, you can convert edge_index into a SparseTensor and do

from torch_sparse import SparseTensor
adj = SparseTensor.from_edge_index(edge_index)
a_new = s.T @ (adj @ s)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mumu029
Comment options

@rusty1s
Comment options

@mumu029
Comment options

Answer selected by mumu029
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants