divelab / DIG

A library for graph deep learning research
https://diveintographs.readthedocs.io/
GNU General Public License v3.0
1.82k stars 281 forks source link

ModuleNotFoundError: No module named 'torch_geometric.nn.acts' #186

Closed vict0rsch closed 1 year ago

vict0rsch commented 1 year ago

I've seen this fix for SphereNet but somehow it did not make it through to other models. Could it be implemented for all models?

vict0rsch commented 1 year ago

Or

try:
    from torch_geometric.nn.acts import swish
except ImportError:
    from torch_geometric.nn.resolver import swish
limei0307 commented 1 year ago

Hi @vict0rsch, we have fixed this for other models. Please let us know if you have any further questions.

vict0rsch commented 1 year ago

My bad, actually this is a matter of pip release, it works installing from source

pip uninstall dive-into-graphs
pip install git+https://github.com/divelab/DIG.git#egg=dive-into-graphs
vict0rsch commented 1 year ago

Do you have a release planned?

mengliu1998 commented 1 year ago

Hi @vict0rsch, we recommend installing from the source to use this first. We will release a new version recently (around this weekend)!

vict0rsch commented 1 year ago

Ok thanks!!