enumerate.dataloader: Enumerate an iterator

View source: R/utils-data-enum.R

enumerate.dataloaderR Documentation

Enumerate an iterator

Description

Enumerate an iterator

Usage

## S3 method for class 'dataloader'
enumerate(x, max_len = 1e+06, ...)

Arguments

x

the generator to enumerate.

max_len

maximum number of iterations.

...

passed to specific methods.


torch documentation built on Aug. 19, 2022, 5:08 p.m.