[misc] add last_epoch in CosineAnnealingWarmupLR (#4778)

pull/4814/head^2
Yan haixu 2023-09-26 14:43:46 +08:00 committed by GitHub
parent b6cf0aca55
commit a22706337a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class CosineAnnealingWarmupLR(WarmupScheduler):
base_scheduler = _CosineAnnealingLR(
optimizer, total_steps - warmup_steps, eta_min=eta_min, last_epoch=last_epoch
)
super().__init__(optimizer, warmup_steps, base_scheduler)
super().__init__(optimizer, warmup_steps, base_scheduler, last_epoch=last_epoch)
class FlatAnnealingLR(DelayerScheduler):