megengine.data.SequentialSampler.batch

SequentialSampler.batch()

Batch 方法提供了一个 batch 索引生成器。

返回类型

Iterator[List[Any]]