Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty heterograph is not allowed. #6

Open
prathameshk opened this issue Apr 11, 2024 · 1 comment
Open

Empty heterograph is not allowed. #6

prathameshk opened this issue Apr 11, 2024 · 1 comment

Comments

@prathameshk
Copy link

prathameshk commented Apr 11, 2024

When I am trying to load the pretrained graph then I get following error.

TxGNN.load_pretrained('./TxGNNExplorer')

dgl._ffi.base.DGLError: [14:31:29] /tmp/dgl_src/src/graph/heterograph.cc:120: Check failed: !rel_graphs.empty(): Empty heterograph is not allowed.
The same error appears when I am trying to initialize the model.

this could be due to mistmatching version of DGL.
I am on Mac M1. So I cant install 0.5.2 version of DGL.
pip install "dgl==0.5.2"
ERROR: Could not find a version that satisfies the requirement dgl==0.5.2 (from versions: 0.9.0, 0.9.1, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.1.2.post1, 1.1.3, 2.0.0, 2.1.0)
ERROR: No matching distribution found for dgl==0.5.2

It seems that 0.5.2 is also not present in https://data.dgl.ai/wheels/repo.html.

Is it possible to create a new release with latest version of DGL?

@michellemli
Copy link

michellemli commented Apr 23, 2024

I encountered the same error even with dgl==0.5.2. But I realized that I did not install a cuda version of PyTorch because this error was raised (I removed the try/except statement to figure out what error was being skipped):

AssertionError: Torch not compiled with CUDA enabled

Do you have a GPU on your system? If so, did you install the cuda or cpu version of PyTorch?

Another option to check whether this is actually your error is to set the device to cpu instead of cuda.

If this is not relevant to your error, maybe try removing the try/except statement to figure out what error is actually being skipped?

===== Edit =====

FYI, I still had problems with dgl==0.5.2 because it did not have cuda enabled. I managed to get the code in the README working with dgl==0.6.1 for cuda 10.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants