base
LearningRateScheduler(optimizer, init_lr)
¶
Bases: _LRScheduler
Provides inteface of learning rate scheduler.
Note
Do not use this class directly, use one of the sub classes.
Source code in quadra/schedulers/base.py
14 15 16 17 |
|
get_lr()
¶
Get the current learning rate if the optimizer is available.
Source code in quadra/schedulers/base.py
39 40 41 42 43 44 45 |
|
set_lr(lr)
¶
Set the learning rate for the optimizer.
Source code in quadra/schedulers/base.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
step(*args, **kwargs)
¶
Base method, must be implemented by the sub classes.
Source code in quadra/schedulers/base.py
19 20 21 |
|