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

RuntimeError: cannot pin 'torch.cuda.DoubleTensor' on GPU on version 0.10.0 #164

Open
novinsh opened this issue Aug 17, 2021 · 0 comments
Open

Comments

@novinsh
Copy link

novinsh commented Aug 17, 2021

I'm trying to fit the RNN model on GPU and this is the error that I get:

RuntimeError: cannot pin 'torch.cuda.DoubleTensor' only dense CPU tensors can be pinned

I also ran the example from here and the same error. The fit method runs without problem on the CPU but not on GPU.

Here's the error's backtrace: https://paste.ubuntu.com/p/KkpthPvPKp/

It seems that this problem has been introduced in the latest version (0.10.0), and it is not an issue in version 0.9.1 in which my code was written previously.

@novinsh novinsh changed the title RuntimeError: cannot pin 'torch.cuda.DoubleTensor' on GPU RuntimeError: cannot pin 'torch.cuda.DoubleTensor' on GPU on version 0.10.0 Aug 17, 2021
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

1 participant