class_docstr: A container class for losses passed to `Model.compile`.
class_docstr_tok: ["A","container","class","for","losses","passed","to","`","Model.compile","`","."]
docstr: Per-output loss metrics.
code: def metrics(self):
      """Per-output loss metrics."""
      if not self._built:
          return []
      per_output_metrics = [
          metric_obj
          for metric_obj in nest.flatten(self._per_output_metrics)
          if metric_obj is not None
      ]
      return [self._loss_metric] + per_output_metrics
  
imports: import copy
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.keras import losses
  from tensorflow.python.keras import metrics
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.keras.utils import losses_utils
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling the LossesContainer obj's underlying member method code with example usage: obj.metrics() and returns: unknown, list