layer_from_config

layer_from_config(config, custom_objects=None)

Instantiate a layer from a config dictionary.

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, Layer...)