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
RuntimeError: cuda runtime error (2) : out of memory at /py/conda-bld/pytorch_1493680494901/work/torch/lib/THC/generic/THCStorage.cu:66 #13
Comments
I figure out that you should use the latest pytorch master version from github, not the release version that you directly install using conda. And the latest version of wgan-gp has use nn.Conv2D instead of nn.Linear. |
Well, i am using python 2.7, maybe there is something wrong with the print function in your envirnment. |
I changed all the python 2 syntax to python 3 but I'll try updating my PyTorch version and see if that works. |
I updated PyTorch but now Torch can't find the attribute Cuda.
|
Do you install it from source code of pytorch correctly? And |
I also get this issue after a few iterations depending on the size of the network. |
Which code do you run? @LukasMosser @vishwakftw . And can you show me the related memory cost. I will check whether it cost the same memory for me. |
I am sorry about it. I had a |
Yes, I have a Batchnorm2d layer as well. Is that an issue already on pytorch/github that you could link? |
@LukasMosser This is the issue: pytorch/pytorch#2287. There seems to be patch ready for it, but you may have to recompile it from source. |
I get this error trying to run the mnist example. I have a Titan X GPU so I don't think I should run out of memory on mnist. I'm using PyTorch version 0.1.12_2 and Python 3.
The text was updated successfully, but these errors were encountered: