next(data_iter) will return a data and target sample, not a DataLoader.
If I execute your code, index, (data, cond) = enumerate(train_loader).__next__() will return the first two values from the data sample, so I don’t think that’s what you want to use.
If you want to create a custom iterator and get the next sample, use next(data_iter) in your training loop.