TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.keras.layers.deserialize

TensorFlow 1 version View source on GitHub

Instantiates a layer from a config dictionary.

Aliases:

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

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

Returns:

Layer instance (may be Model, Sequential, Network, Layer...)