13:38 data type issues in training loop - Thanks for the great videos! #86
-
Beta Was this translation helpful? Give feedback.
Answered by
aronvandepol
Aug 7, 2022
Replies: 2 comments 7 replies
-
Hi Jack, Have you tried changing the tensor type to You can also see the error implies that you cannot call the loss function on a |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
mrdbourke
-
@mrdbourke this one is answered and solved :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Jack,
Have you tried changing the tensor type to
torch.float32
? I managed to get through almost all with simply that datatype.You can also see the error implies that you cannot call the loss function on a
torch.LongTensor
.