Yes exactly, inside my data loader I’m loading the image and returning it along with the label as torch.FloatTensor. Then in the training I’m calling .cuda() on both the images and the labels before passing them to the model.
Is this what you mean? Do you have a better approach?
Thanks for the help!