data icon indicating copy to clipboard operation
data copied to clipboard

DataLoader2.__len__() ?

Open NicolasHug opened this issue 3 years ago • 1 comments

This is somewhat related to https://github.com/pytorch/data/issues/533

As described in https://github.com/pytorch/data/issues/533#issuecomment-1163381945, we like to check the len() of the DataLoader in torchvision in our logging utils.

Are there plans to implement __len__() on DataLoader2?

NicolasHug avatar Jun 24 '22 17:06 NicolasHug

It makes sense to have such feature, however it will follow len behavior of underlying pipes (ex. filter drops len).

VitalyFedyunin avatar Jul 06 '22 19:07 VitalyFedyunin