View source on GitHub |
Linear warmup schedule.
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
)
Methods
from_config
@classmethod
from_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.