Hi, I got the above error, and from the docs I’m not able to understand where should I adjust to cuda.
For example in the docs they are showing how to create a tensor on the gpu, but what with the case when I’m loading Images? still the same?
Now I have a situation my tensors are cuda type, but my layers not, and that’s why I’m getting :
"Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor ".
Now I need to put .cuda() on each layer?(or something like this) doesn’t make sense.
This is were the program stoped, in the nn.conv2d , tried to “.cuda()”
, didn’t help
Could you post your code so that we could have a look?
The issue is strange, as the first batch seems to work.
If you can’t post code due to some restrictions, could you come up with a small dummy code snippet to reproduce this issue?