# tf.keras.optimizers.deserialize

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/deserialize) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/keras/optimizers.py#L785-L815) |

Inverse of the `serialize` function.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.optimizers.deserialize`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/deserialize), \`tf.compat.v2.keras.optimizers.deserialize\`, \`tf.compat.v2.optimizers.deserialize\`

<br />

    tf.keras.optimizers.deserialize(
        config, custom_objects=None
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `config` | Optimizer configuration dictionary. |
| `custom_objects` | Optional dictionary mapping names (strings) to custom objects (classes and functions) to be considered during deserialization. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A Keras Optimizer instance. ||

<br />