message: Add show_dtype param to plot_model and model_to_dot.
diff: @@ -69,6 +69,7 @@ def add_edge(dot, src, dst):
  @keras_export('keras.utils.model_to_dot')
  def model_to_dot(model,
  show_shapes=False,
  + show_dtype=False,
  show_layer_names=True,
  rankdir='TB',
  expand_nested=False,
  @@ -79,6 +80,7 @@ def model_to_dot(model,
  Arguments:
  model: A Keras model instance.
  show_shapes: whether to display shape information.
  + show_dtype: whether to display layer dtypes.
  show_layer_names: whether to display layer names.
  rankdir: `rankdir` argument passed to PyDot,
  a string specifying the format of the plot:
  @@ -150,8 +152,11 @@ def model_to_dot(model,
  if isinstance(layer, wrappers.Wrapper):
  if expand_nested and isinstance(layer.layer,
  functional.Functional):
  - submodel_wrapper = model_to_dot(layer.layer, show_shapes,
  - show_layer_names, rankdir,
  + submodel_wrapper = model_to_dot(layer.layer,
  + show_shapes,
  + show_dtype,
  + show_layer_names,
  + rankdir,
  expand_nested,
  subgraph=True)
  # sub_w : submodel_wrapper
  @@ -165,8 +170,11 @@ def model_to_dot(model,
  class_name = '{}({})'.format(class_name, child_class_name)
  if expand_nested and isinstance(layer, functional.Functional):
  - submodel_not_wrapper = model_to_dot(layer, show_shapes,
  - show_layer_names, rankdir,
  + submodel_not_wrapper = model_to_dot(layer,
  + show_shapes,
  + show_dtype,
  + show_layer_names,
  + rankdir,
  expand_nested,
  subgraph=True)
  # sub_n : submodel_not_wrapper
  @@ -181,6 +189,16 @@ def model_to_dot(model,
  else:
  label = class_name
  + # Rebuild the label as a table including the layer's dtype.
  + if show_dtype:
  + def format_dtype(dtype):
  + if dtype is None:
  + return '?'
  + else:
  + return str(dtype)
  +
  + label = '%s|%s' % (label, dtype)
  +
  # Rebuild the label as a table including input/output shapes.
  if show_shapes:
  @@ -260,6 +278,7 @@ def model_to_dot(model,
  def plot_model(model,
  to_file='model.png',
  show_shapes=False,
  + show_dtype=False,
  show_layer_names=True,
  rankdir='TB',
  expand_nested=False,
  @@ -286,6 +305,7 @@ def plot_model(model,
  model: A Keras model instance
  to_file: File name of the plot image.
  show_shapes: whether to display shape information.
  + show_dtype: whether to display layer dtypes.
  show_layer_names: whether to display layer names.
  rankdir: `rankdir` argument passed to PyDot,
  a string specifying the format of the plot:
  @@ -300,6 +320,7 @@ def plot_model(model,
  """
  dot = model_to_dot(model,
  show_shapes=show_shapes,
  + show_dtype=show_dtype,
  show_layer_names=show_layer_names,
  rankdir=rankdir,
  expand_nested=expand_nested,
  