Skip to content

Commit

Permalink
allow other lr schedulers
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlatt committed Nov 21, 2024
1 parent e84281c commit 76be876
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lightning_ir/lightning_utils/lr_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ class ConstantLRSchedulerWithLinearWarmup(WarmupLRScheduler, ConstantSchedulerWi
pass


LR_SCHEDULERS = [LinearLRSchedulerWithLinearWarmup, ConstantLRSchedulerWithLinearWarmup]
LR_SCHEDULERS = (
LinearLRSchedulerWithLinearWarmup,
ConstantLRSchedulerWithLinearWarmup,
WarmupLRScheduler,
torch.optim.lr_scheduler.LRScheduler,
)

0 comments on commit 76be876

Please sign in to comment.