10.4 FoodVision Big Turning Datasets into DataLoaders #712
Unanswered
JohnKHancock
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm getting an error when I convert the datasets into dataloaders. Specifically, the target labels are not in a tensor. They're integers. When I run the engine.py script, it throws an error when sending the "y" variable to the device. The problem is that the "y" variable or targets are not in a tensor.
I've reviewed the videos and looked online. What is the best method for converting the target labels from a torchvision.dataset into a tensor?
Thank you for any assistance on this.
`
Beta Was this translation helpful? Give feedback.
All reactions