Skip to content

13:38 data type issues in training loop - Thanks for the great videos! #86

Answered by aronvandepol
JackXu9 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@aronvandepol
Comment options

@JackXu9
Comment options

@aronvandepol
Comment options

@JackXu9
Comment options

@aronvandepol
Comment options

Answer selected by mrdbourke
Comment options

You must be logged in to vote
1 reply
@mrdbourke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants