How to make databunch iterable

once i make a databunch, i want to iterate over it. is it possible to do so?

The dataloaders are stored as train_dl, val_dl in the databunch

for i, data in enumerate(data_bunch.train_dl):
    x = data[0]
    y = data[1]

this was really helpful thanks : D

1 Like