Chapter 5 help

ran this yesterday and it worked fine. Today not so much. I’m working in kaggle notebooks. Any ideas?

pets = DataBlock(blocks = (ImageBlock, CategoryBlock),
get_y=using_attr(RegexLabeller(r’(.+)_\d+.jpg$’), ‘name’),
batch_tfms=aug_transforms(size=224, min_scale=0.75))
dls = pets.dataloaders(path/“images”)

/opt/conda/lib/python3.7/site-packages/torch/ UserWarning: torch.solve is deprecated in favor of torch.linalg.solveand will be removed in a future PyTorch release.
torch.linalg.solve has its arguments reversed and does not return the LU factorization.
To get the LU factorization see, which can be used with torch.lu_solve or torch.lu_unpack.
X = torch.solve(B, A).solution
should be replaced with
X = torch.linalg.solve(A, B) (Triggered internally at /usr/local/src/pytorch/aten/src/ATen/native/BatchLinearAlgebra.cpp:752.)
ret = func(*args, **kwargs)