Thanks for your solution, that makes sense. Is Byte tensor the default when converting to grayscale, or was this because of my original image format? Also, does target always refer to the labels in the error code, or can it refer to something else? I was initially confused about what was meant by target and which tensor’s type to change.
Thank you!