-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
IndexError when initializing torch_geometric.nn.Sequential during multiprocessing #9371
Comments
Potential causeI suspect the issue is due to the loading of wrong ExplanationIn your Sequential(
(0) - ChebConv(32, 16, K=3, normalization=sym): x, edge_index, edge_weight -> x
(1) - ChebConv(16, 1, K=3, normalization=sym): x, edge_index, edge_weight -> x
) and the Sequential(
(0) - ChebConv(32, 16, K=3, normalization=sym): x, edge_index, edge_weight -> x
(1) - ChebConv(16, 1, K=3, normalization=sym): x, edge_index, edge_weight -> x
(2) - ChebConv(32, 1, K=3, normalization=sym): x, edge_index, edge_weight -> x
) then you might get an index error when executing the print statement since the loaded |
Thanks for your hint. In my practice, the Right now, my temporal solution is using |
Your original code should work fine if you install PyG from source (
Take a look at #9369. |
🐛 Describe the bug
Problem description:
Hello,
I recently encountered an
IndexError
when attempting to initializetorch_geometric.nn.Sequential
within a multiprocessing environment. My suspicion is that due to the shared nature of multiprocessing, the ID of theSequential
module might be the same across multiple processes, leading to conflicts and incorrect indexing.I would greatly appreciate any suggestions on how to address this issue. :)
Code to reproduce:
Error message:
Versions
The text was updated successfully, but these errors were encountered: