tf.keras.utils.model_to_dot

View source on GitHub

Convert a Keras model to dot format.

tf.keras.utils.model_to_dot(
    model, show_shapes=False, show_layer_names=True, rankdir='TB',
    expand_nested=False, dpi=96, subgraph=False
)

Arguments:

Returns:

A pydot.Dot instance representing the Keras model or a pydot.Cluster instance representing nested model if subgraph=True.

Raises: