View source on GitHub
|
Applies polynomial warmup schedule on a given learning rate decay schedule.
tfm.optimization.PolynomialWarmUp(
after_warmup_lr_sched: Union[tf.keras.optimizers.schedules.LearningRateSchedule, float],
warmup_steps: int,
power: float = 1.0,
name: str = 'PolynomialWarmup'
)
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
)
Call self as a function.
View source on GitHub