How to use batch adjacency matrix with GraphUNet
See original GitHub issue❓ Questions & Help
I want to directly input a batch of adjacency matrix(batch, n_nodes, n_nodes) and nodes(batch, n_nodes, feats) into the GraphUNet. I convert the dense matrix to sparse edge indexes. However the number of edges in the whole batch is various, the edge init edge_weight = x.new_ones(edge_index.size(1))
went wrong. Did I miss something for batch processing? How can I efficiently use the batch dense matrix as input?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to use batch adjacency matrix with GraphUNet #1207
I want to directly input a batch of adjacency matrix(batch, n_nodes, n_nodes) and nodes(batch, n_nodes, feats) into the GraphUNet. I convert the ...
Read more >torch_geometric.nn — pytorch_geometric documentation
The adjacency matrix can include other values than 1 representing edge weights via ... batch_norm (bool, optional) – If set to True ,...
Read more >torch_geometric.nn — pytorch_geometric 1.4.3 documentation
The adjacency tensor is broadcastable in the batch dimension, resulting in a shared adjacency matrix for the complete batch. mask (BoolTensor, optional) –...
Read more >Using a batch of pytorch tensors as weighted adjacency ...
Hi, I'm trying to treat a batch of tensors as a batch of adjacency matrices (batch_of_adj: tensor of size [8, 512, 512], meaning...
Read more >Mutual Information Maximization in Graph Neural Networks
little analysis of the transformation of the adjacency matrix of ... 72.16% with the usage of continuous node attribute and batch.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @rusty1s , how about this?
Sure, feel free to add it 😃