I created a sampler and use it in the dataloader as a batch_sampler argument. No I need to have a len method. What is it? The length of all datapoints or the number of batches the iterator returns?
That is not clear and confusing and in the link mentioned above not well documented…