StepLR constructor
StepLR(})
Implementation
StepLR(
super.optimizer, {
required this.initialLr,
required this.stepSize,
this.gamma = 0.1,
}) {
if (stepSize <= 0) {
throw ArgumentError('StepLR: stepSize must be > 0');
}
optimizer.lr = initialLr;
}