tf.keras.layers.serialize

Returns the layer configuration as a Python dict.

layer A keras.layers.Layer instance to serialize.

Python dict which contains the configuration of the layer.