DataLoader<T> constructor
DataLoader<T> (})
Implementation
DataLoader(
this.dataset, {
this.batchSize = 1,
this.shuffle = false,
this.dropLast = false,
int? seed,
}) : _rng = math.Random(seed ?? 0) {
if (batchSize < 1) {
throw ArgumentError('batchSize must be >= 1, got $batchSize');
}
}