tf.keras.optimizers.schedules.LearningRateSchedule
Stay organized with collections
Save and categorize content based on your preferences.
A serializable learning rate decay schedule.
LearningRateSchedule
s can be passed in as the learning rate of optimizers in
tf.keras.optimizers
. They can be serialized and deserialized using
tf.keras.optimizers.schedules.serialize
and
tf.keras.optimizers.schedules.deserialize
.
Methods
from_config
View source
@classmethod
from_config(
config
)
Instantiates a LearningRateSchedule
from its config.
Args |
config
|
Output of get_config() .
|
Returns |
A LearningRateSchedule instance.
|
get_config
View source
@abc.abstractmethod
get_config()
__call__
View source
@abc.abstractmethod
__call__(
step
)
Call self as a function.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.keras.optimizers.schedules.LearningRateSchedule\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/keras/optimizers/schedules/LearningRateSchedule) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/keras/optimizer_v2/learning_rate_schedule.py#L33-L60) |\n\nA serializable learning rate decay schedule.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tf.optimizers.schedules.LearningRateSchedule`](/api_docs/python/tf/keras/optimizers/schedules/LearningRateSchedule)\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.keras.optimizers.schedules.LearningRateSchedule`](/api_docs/python/tf/keras/optimizers/schedules/LearningRateSchedule)\n\n\u003cbr /\u003e\n\n`LearningRateSchedule`s can be passed in as the learning rate of optimizers in\n[`tf.keras.optimizers`](../../../../tf/keras/optimizers). They can be serialized and deserialized using\n[`tf.keras.optimizers.schedules.serialize`](../../../../tf/keras/optimizers/schedules/serialize) and\n[`tf.keras.optimizers.schedules.deserialize`](../../../../tf/keras/optimizers/schedules/deserialize).\n\nMethods\n-------\n\n### `from_config`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/keras/optimizer_v2/learning_rate_schedule.py#L50-L60) \n\n @classmethod\n from_config(\n config\n )\n\nInstantiates a `LearningRateSchedule` from its config.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|----------|---------------------------|\n| `config` | Output of `get_config()`. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| A `LearningRateSchedule` instance. ||\n\n\u003cbr /\u003e\n\n### `get_config`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/keras/optimizer_v2/learning_rate_schedule.py#L46-L48) \n\n @abc.abstractmethod\n get_config()\n\n### `__call__`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/keras/optimizer_v2/learning_rate_schedule.py#L42-L44) \n\n @abc.abstractmethod\n __call__(\n step\n )\n\nCall self as a function."]]