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

No module named 'torch_geometric.nn.acts' #179

Closed pearl-rabbit closed 1 year ago

pearl-rabbit commented 1 year ago

Traceback (most recent call last): File "test.py", line 8, in from dig.threedgraph.method import SphereNet File "/python3.7/site-packages/dig/threedgraph/method/init.py", line 3, in from .dimenetpp import DimeNetPP File "/python3.7/site-packages/dig/threedgraph/method/dimenetpp/init.py", line 1, in from .dimenetpp import DimeNetPP File "/py_test37/lib/python3.7/site-packages/dig/threedgraph/method/dimenetpp/dimenetpp.py", line 4, in from torch_geometric.nn.acts import swish ModuleNotFoundError: No module named 'torch_geometric.nn.acts'

I encountered this problem when using the threegraph example. How can I solve it?

vict0rsch commented 1 year ago

I have the same issue

Michael-Hai commented 1 year ago

can try:

try: from torch_geometric.nn.acts import swish except ImportError: from torch_geometric.nn.resolver import swish

SaraiQX commented 1 year ago

Many thanks to Michael-Hai.

try:
from torch_geometric.nn.acts import swish
except ImportError:
from torch_geometric.nn.resolver import swish

Worked okay.

White-Charles commented 1 year ago

can try:

try: from torch_geometric.nn.acts import swish except ImportError: from torch_geometric.nn.resolver import swish

Thank Michael-Hai. very much.