-
Notifications
You must be signed in to change notification settings - Fork 425
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
Tutorial fails on the GPU part with 'cunn' - training with SGD #19
Comments
You are trying a process with non-cuda tensor. Convert it to cuda. |
i think the tutorial neglects to convert testset.data to a Cuda Tensor: testset.data = testset.data:cuda() |
Although it's a bit late, I got this kind of errors when not converting the criterion to CUDA:
Afterwards, amking sure that in- and outputs are CUDA tensors, everything worked fine. Thought I'd share as the issue is still open! |
@davidstutz - thank you! That was exactly what I needed. In my case: |
From my perspective, the issue is caused by the position of :cuda() operation. The :double operation in tutorial converts the tensor not only to double but also to CPU. So the :cuda() operation for training and testing dataset must be placed after the :double operation. |
Hey, I was just trying the tutorial and the last part doesn't seem to work. Here is the error I got. Can someone help me?
I already tried reinstalling 'nn' and 'cunn' and also reinstall Torch altogether! Btw, can someone also tell me why we do that?
The text was updated successfully, but these errors were encountered: