Skip to contents

Enumerate an iterator

Usage

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

Arguments

x

the generator to enumerate.

max_len

maximum number of iterations.

...

passed to specific methods.