meta-pytorch / meta-pytorch/data

DataLoader2.__len__() ?

Open
#549 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.3k
Forks
179
Avg merge
6d 1h
Merged PRs (30d)
2

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked issue #533 and its referenced comment, then inspect how torchvision logging utilities call len() on DataLoader instances. Determine what length should mean for DataLoader2 and how that behavior would be validated; the issue does not name implementation files or tests, so completion depends on an agreed design.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.