Your DataLoaders
is learn.dls
. So you can access each DataLoader
as learn.dls.valid
and learn.dls.train
. So you can do next(iter(learn.dls.valid))
or just first(learn.dls.valid)
or even learn.dls.valid.one_batch()
to grab a batch, exactly as the model will see it.
2 Likes