LRScheduler
- class LRScheduler(optimizer: Optimizer, last_epoch: int = -1)[source]
Bases:
object
Adjusts the learning rate during optimization.
Methods Summary
Return last computed learning rate by current scheduler.
get_lr
()Compute learning rate using chainable form of the scheduler.
load_state_dict
(state_dict)Load the scheduler's state.
Return the state of the scheduler as a
dict
.step
([epoch])Perform a step.
Methods Documentation
- load_state_dict(state_dict: dict[str, Any])[source]
Load the scheduler’s state.
- Args:
- state_dict (dict): scheduler state. Should be an object returned
from a call to
state_dict()
.