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

AssertionError: NeighborSampler doesn't support mutable graphs. Please turn it into an immutable graph with DGLGraphStale.readonly #9

Open
HandsomeEffortMonster opened this issue Sep 22, 2024 · 0 comments

Comments

@HandsomeEffortMonster
Copy link

DGLGraph now always supports mutable operations like add_nodes and add_edges.
return warnings.warn(message, category=category, stacklevel=1)
Traceback (most recent call last):
File "/tmp/pycharm_project_609/KPGNN/main.py", line 139, in
train_indices, indices_to_remove, model = KPGNN.initial_maintain(train_i, 0, data_split, metrics,
File "/tmp/pycharm_project_609/KPGNN/model.py", line 420, in initial_maintain
for batch_id, nf in enumerate(dgl.contrib.sampling.NeighborSampler(g,
File "/home/x/miniconda3/envs/python39/lib/python3.9/site-packages/dgl/contrib/sampling/sampler.py", line 320, in init
assert g.is_readonly, "NeighborSampler doesn't support mutable graphs. " +
AssertionError: NeighborSampler doesn't support mutable graphs. Please turn it into an immutable graph with DGLGraphStale.readonly
ERROR conda.cli.main_run:execute(125): conda run python /tmp/pycharm_project_609/KPGNN/main.py failed. (See above for error)

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

1 participant