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

cannot allocate memory #11

Closed
miracle24 opened this issue Oct 7, 2017 · 2 comments
Closed

cannot allocate memory #11

miracle24 opened this issue Oct 7, 2017 · 2 comments

Comments

@miracle24
Copy link

When I run the att2in2 model with cross entropy loss, I got 'cannot allocate memory' error. I don't know why. The detail is:
File "/usr/lib/python2.7/multiprocessing/process.py", line 130, in start
self._popen = Popen(self)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 121, in init
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

because of my fault, I cannot get all the details. But I known it comes from the detaloader.py which loads the data with multiprocess. It seems that the error didn't happen regularly. Sometimes the whole training can be over without errors, sometimes not. Have you ever met this error? @ruotianluo

@ruotianluo
Copy link
Owner

ruotianluo commented Oct 7, 2017

It happens to me sometime too, but varies from machine to machine. pytorch/pytorch#1355
I guess it's related to the setting of different machines.

@miracle24
Copy link
Author

Thanks a lot. Zan yi ge!

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