Closed skystreet8 closed 7 months ago
Thank you for the report. A DGLGraph can use int32
or int64
for its data storage. It seems that .adj().coalesce()
only supports int64
. You can convert a DGLGraph from int32
to int64
with g.long()
.
Thank you for the report. A DGLGraph can use
int32
orint64
for its data storage. It seems that.adj().coalesce()
only supportsint64
. You can convert a DGLGraph fromint32
toint64
withg.long()
.
Thanks for your reply! It solved my issue perfectly!
Hi everyone, I updated my DGL version from 1.0.0 to 1.1.2 and found a little bug when performing
g.adj().coalesce()
where g is a DGLGraph object constructed by the smiles_to_bigraph function:My DGLLife version is 0.3.2, and this version works fine with DGL 1.0.0.
I located the bug in the file utils\mol_to_graph.py, at line 153:
might should be:
at line 175:
might should be:
After applying the above changes the bug seems to be fixed. I haven't tested the changes with other versions of DGL. I encountered the same issue on both Win 11 and Ubuntu 18.04.2 platforms. My pytorch version is 1.13.1.