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

Patch 1 #157

Closed Mahmood-Kazemi closed 1 year ago

Mahmood-Kazemi commented 1 year ago

Hello I don't know about the past, but currently, we don't have a module named torch_geometric.nn.acts and this lack has caused some problems including Issues number #156 and #115. Above all, the code example posted on the page "Tutorial for 3D Graphs" from the DIG documentation website, doesn't work because of this problem. According to PyG's documentation, maybe the best alternative way to access the "swish" act function is to use from torch_geometric.nn.resolver import swish thank you.

limei0307 commented 1 year ago

Hi @Mahmood-Kazemi,

Thanks a lot for your contribution to keeping the package up to date! I updated the code to define the swish function directly in the model file as shown here to make our method compatible with more versions of PyG.

Best, Limei Wang