# tf.keras.layers.deserialize

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/layers/deserialize) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/keras/layers/serialization.py#L68-L106) |

Instantiates a layer from a config dictionary.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.keras.layers.deserialize`](https://www.tensorflow.org/api_docs/python/tf/keras/layers/deserialize)

<br />

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

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `config` | dict of the form {'class_name': str, 'config': dict} |
| `custom_objects` | dict mapping class names (or function names) of custom (non-Keras) objects to class/functions |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Layer instance (may be Model, Sequential, Network, Layer...) ||

<br />