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 May 29, 2024, 9:54 a.m.