<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/modeling/optimization/lr_schedule.py#L168-L233) |

Applies polynomial warmup schedule on a given learning rate decay schedule.

#### View aliases


**Main aliases**

[`tfm.optimization.lr_schedule.PolynomialWarmUp`](https://www.tensorflow.org/api_docs/python/tfm/optimization/PolynomialWarmUp)

<br />

    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`

    @classmethod
    from_config(
        config
    )

Instantiates a `LearningRateSchedule` from its config.

<br />

<br />

<br />

| Args ||
|---|---|
| `config` | Output of `get_config()`. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| A `LearningRateSchedule` instance. ||

<br />

### `get_config`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/modeling/optimization/lr_schedule.py#L220-L233)

    get_config() -> Mapping[str, Any]

### `__call__`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/modeling/optimization/lr_schedule.py#L190-L218)

    __call__(
        step
    )

Call self as a function.