No attribute DGLHeteroGraph

AttributeError: Can’t get attribute ‘DGLHeteroGraph’ on <module ‘dgl.heterograph’ from ‘/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/site-packages/dgl/heterograph.py’>

I am using dgl version as below.

print(dgl.version)
1.0.0+cu113

But the dgl graph I built is based on version 0.9, where I installed with dgl-cuda11.3=0.9.0=py39_0.

Any idea how to resolve this problem? Thanks.

Did you save your graph using pickle? Pickle does not guarantee backward compatibility so we recommend saving via dgl.save_graphs.

I may meet this before. I suggest you see the DGL’s documents. try to use the function that corresponds to dgl’s version.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.