We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using the latest DGL version. The following code throws a DGLError: Check failed: dim != 0 (0 vs. 0) :
import dgl import torch g = dgl.DGLGraph(([0, 1], [1, 2])).to('cuda:0') idx = torch.LongTensor([]).to('cuda:0') g.out_edges(idx)
However, if the graph runs on CPU, the code works well. I'm not sure whether this is a bug.
The text was updated successfully, but these errors were encountered:
Empty tensor should not be allowed in out_edges function. Do you have any expected behavior here?
out_edges
Sorry, something went wrong.
Actually, I just feel it's strange that out_edges has different behavior on CPU and GPU. It would be better if it returns an empty edge set.
A similar problem is found in out_degrees
out_degrees
Should be fixed in master. Will go into 0.5.2 release.
No branches or pull requests
🐛 Bug
I'm using the latest DGL version. The following code throws a DGLError: Check failed: dim != 0 (0 vs. 0) :
However, if the graph runs on CPU, the code works well. I'm not sure whether this is a bug.
The text was updated successfully, but these errors were encountered: