View source on GitHub |
Applies a warmup schedule on a given learning rate decay schedule.
mediapipe_model_maker.model_util.WarmUp(
initial_learning_rate: float,
decay_schedule_fn: Callable[[Any], Any],
warmup_steps: int,
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() -> Dict[str, Any]
__call__
__call__(
step: Union[int, tf.Tensor]
) -> tf.Tensor
Call self as a function.