lightaime / deep_gcns_torch

Pytorch Repo for DeepGCNs (ICCV'2019 Oral, TPAMI'2021), DeeperGCN (arXiv'2020) and GNN1000(ICML'2021): https://www.deepgcns.org
MIT License
1.13k stars 155 forks source link

AttributeError from 'torch_vertex.py' #93

Closed psh9002 closed 2 years ago

psh9002 commented 2 years ago

When I execute examples/ppi/main.py, there was an attribute error from /gcn_lib/sparse/torch_vertex.py. AttributeError: module ‘torch_geometric.utils‘ has no attribute ‘scatter_‘

The latest PyG doesn't have scatter_ at torch_geometric.utils https://pytorch-geometric.readthedocs.io/en/latest/modules/utils.html#

I resolve this issue by just adding scatter_ mathod to torch_vertex.py from previous version.

lightaime commented 2 years ago

Thanks, @psh9002 for your quick fix! I fixed this issue according to your suggestion.