Skip to content

Misleading call of 'iter' in the 'WrappedDataLoader' #1757

Closed
@sadra-barikbin

Description

@sadra-barikbin

batches = iter(self.dl)

There is no need to call iter in this line and that is misleading. Internally, by calling iter an _BaseDataLoaderIter instance is returned. Then in the for loop, again iter is called by the interpreter and the same instance is returned. So there is no need to that call.

cc @suraj813

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions