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

Getting RuntimeError #7

Open
lancioni opened this issue Nov 19, 2020 · 3 comments
Open

Getting RuntimeError #7

lancioni opened this issue Nov 19, 2020 · 3 comments

Comments

@lancioni
Copy link

When I try to reproduce experiments as stated, I invariably get an error:

RuntimeError: received 0 items of ancdata

The error is somewhat erratic, e.g. in train_zinc_subset.py I get it after 15 to 50 epoch in the first run. It seems to have to do with some kind of memory of other saturation I cannot detect.
Other examples in Python Geometric work just fine, so I think it is something specific to the code in himp-gnn.
I am using Python 3.6.9 under WSL2 Ubuntu 18.04.

@rusty1s
Copy link
Owner

rusty1s commented Nov 19, 2020

Adding torch.multiprocessing.set_sharing_strategy('file_system') at the top of the file is likely to fix this issue, see here. Not exactly sure what's causing it though.

@lancioni
Copy link
Author

Thank you, it's working now!

@lancioni
Copy link
Author

Another runtime error, again erratical and coming out when running train_zinc_full.py (after adding torch.multiprocessing.set_sharing_strategy('file_system')):

RuntimeError: unable to open shared memory object </torch_5535_1638182315> in read-write mode

Some discussion in other pytorch apps suggests it is a memory issue and advises to lower the number of workers. I have no idea if this is the issue, though.

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