Sorry, but we are talking about sampler, and in the code aboce in the link you see that Samplers have a len emthod. I get an error because I need len(dataloader)…
Why are you talking about the Dataset now? pytorch is really confusing…