question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

torch_geometric.nn.aggr on Google Colab

See original GitHub issue

😵 Describe the installation problem

I have successfully installed the following:

!pip install torch-scatter -f https://data.pyg.org/whl/torch-1.12.0+cu113.html !pip install torch-sparse -f https://data.pyg.org/whl/torch-1.12.0+cu113.html !pip install torch-geometric -f https://data.pyg.org/whl/torch-1.12.0+cu113.html

and tried various modifications and reformulations of the environment as well. In all of these, the majority of functionality was present, but the notebook did not recognize the torch_geometric.nn.aggr module. I am positive that my import statement was phrased correctly, as it was copied directly from examples in the source code. Any advice on how to address this error would be greatly appreciated.

Environment

  • PyG version: 2.0.3
  • PyTorch version: 1.12.0
  • OS: Google Colab
  • Python version: 3.7.13
  • CUDA/cuDNN version: 11.1
  • How you installed PyTorch and PyG (conda, pip, source): See above
  • Any other relevant information (e.g., version of torch-scatter): torch-scatter is 2.0.9, torch-sparse is 0.6.14

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Aug 7, 2022

Thanks for fixing @Padarn. Merged it.

0reactions
gregory-kyrocommented, Aug 7, 2022

@Padarn @rusty1s Thank you for all of the help! I made the change in the source code I have installed locally and it fixed the problem. I really appreciate it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colab Notebooks and Video Tutorials - PyTorch Geometric
We have prepared a list of colab notebooks that practically introduces you ... All tutorials also link to a Google Colab with the...
Read more >
Google Colab: PyTorch Geometric Installation - gists · GitHub
Hi, I've tried your code, but it still failed to import torch_geometric. Have you ever faced this issue?
Read more >
Tutorial 9: Recurrent GNNs - Google Colab
In this tutorial we will implement an approximation of the Graph Neural Network Model (without enforcing contraction map) and analyze the GatedGraph Convolution ......
Read more >
torch-geometric - PyPI
A GNN layer specifies how to perform message passing, i.e. by designing different message, aggregation and update functions as defined here. These GNN...
Read more >
PyTorch Geometric CUDA installation issues on Google Colab
From their website. Try this !pip install torch-geometric \ torch-sparse==latest+cu101 \ torch-scatter==latest+cu101 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found