tfm.optimization.LinearWarmup
Stay organized with collections
Save and categorize content based on your preferences.
Linear warmup schedule.
View aliases
Main aliases
tfm.optimization.LinearWarmup(
after_warmup_lr_sched: Union[tf.keras.optimizers.schedules.LearningRateSchedule, float],
warmup_steps: int,
warmup_learning_rate: float,
name: Optional[str] = None
)
Args | |
|---|---|
after_warmup_lr_sched
|
tf.keras.optimizers.schedules .LearningRateSchedule or a constant. |
warmup_steps
|
Number of the warmup steps. |
warmup_learning_rate
|
Initial learning rate for the warmup. |
name
|
Optional, name of warmup schedule. |
Methods
from_config
@classmethodfrom_config( config )
Instantiates a LearningRateSchedule from its config.
| Args | |
|---|---|
config
|
Output of get_config().
|
| Returns | |
|---|---|
A LearningRateSchedule instance.
|
get_config
get_config() -> Mapping[str, Any]
__call__
__call__(
step: int
)
Call self as a function.