-
Notifications
You must be signed in to change notification settings - Fork 387
Chapter 05 - age_gender_torch_snippets #95
Copy link
Copy link
Open
Description
The following imports and declarations needed to be added to run the example code:
from torch.utils.data import Dataset, DataLoader
import torchvision
from torchvision import transforms, models, datasets
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'
from torch.utils.data import DataLoader
But still stalled when I got to this line of code:
inspect(ims, gens, ages)
The book calls out the 'inspet() function as part of torch_snippets and I thought inspect was a function imported with:
from torch_snippets import *
But getting the error:
TypeError: 'module' object is not callable
Snip of error attached...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
