awslabs / dgl-lifesci

Python package for graph neural networks in chemistry and biology
Apache License 2.0
696 stars 144 forks source link

Issue with dgl v1.0.0 #208

Closed eereenah-fast closed 1 year ago

eereenah-fast commented 1 year ago

Hello!

I have updated dgl to v1.0.0 and I am getting the following error when using code for AttentiveFP model:

File ".../anaconda3/envs/.../lib/python3.8/site-packages/dgllife/model/gnn/attentivefp.py", line 72, in forward
    g.update_all(fn.copy_edge('e', 'm'), fn.sum('m', 'c'))
AttributeError: module 'dgl.function' has no attribute 'copy_edge'

It seems that fn.copy_edge() has been replaced with fn.copy_e() in the newly released version of dgl.

mufeili commented 1 year ago

Thank you for the report. I confirm the issue and will check for all modules and fix them.

mufeili commented 1 year ago

This has been fixed in #210. Thank you for the report.