Skip to content
Discussion options

You must be logged in to vote

Do you have a small example to reproduce? This works just fine for me:

from torch_geometric.data import Batch
from torch_geometric.utils import to_dense_adj
from torch_geometric.datasets import TUDataset

dataset = TUDataset('/tmp/TU', name='MUTAG')
batch = Batch.from_data_list(dataset[:10])
adj = to_dense_adj(batch.edge_index, batch.batch)
print(adj.shape)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@zhinanchezhoubo
Comment options

@zhinanchezhoubo
Comment options

@rusty1s
Comment options

@zhinanchezhoubo
Comment options

@rusty1s
Comment options

Answer selected by zhinanchezhoubo
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