pytorch-geometric Questions

2

Hello what is a good way to visualize a pyg HeteroData object ? (defined similarly: https://pytorch-geometric.readthedocs.io/en/latest/notes/heterogeneous.html#creating-heterogeneous-gnns ) I tried...

5

How can I convert my own dataset to be usable by pytorch geometric for a graph neural network? All the tutorials use existing dataset already converted to be usable by pytorch. For example if I hav...
Guadalcanal asked 24/3, 2021 at 20:6

1

Solved

I have two tensors: # losses_q tensor(0.0870, device='cuda:0', grad_fn=<SumBackward0>) # this_loss_q tensor([0.0874], device='cuda:0', grad_fn=<AddBackward0>) When I am trying to conca...
Distributee asked 5/3, 2023 at 17:28

2

I want to handle weighted undirected graphs in Pytorch Geometric. The node features are 50 dimensional. I found that this can be handled by the x attribute of the torch_geometric.data.data class. T...
Heraclitus asked 14/10, 2021 at 6:18

6

Solved

I was working on a PyTorch Geometric project using Google Colab for CUDA support. Since it's library isn't present by default, I run: !pip install --upgrade torch-scatter !pip install --upgrade to...
Sanguineous asked 15/2, 2020 at 5:32

1

Solved

Goal: I am trying to import a graph FROM networkx into PyTorch geometric and set labels and node features. (This is in Python) Question(s): How do I do this [the conversion from networkx to PyTorc...
Sluggard asked 22/12, 2021 at 16:50

1

Solved

I am trying to find the explanation for negative and positive edges in a graph as explained in the opening of the function train_test_split_edges Pytorch Geometric doc. According to the doc file it...
Valiant asked 2/4, 2021 at 0:27
1

© 2022 - 2024 — McMap. All rights reserved.