parameters: (self, summary_logdir=None)
docstring: Computes results for all contained metrics.
  
      Args:
        summary_logdir: An optional string. If specified, metric results
          will be written as summaries to this directory.
  
      Returns:
        A `dict` mapping string names to tensors.
docstring_summary: Computes results for all contained metrics.
docstring_tokens: Computes results for all contained metrics .
function: def all_metric_results(self, summary_logdir=None):
      """Computes results for all contained metrics.
  
      Args:
        summary_logdir: An optional string. If specified, metric results
          will be written as summaries to this directory.
  
      Returns:
        A `dict` mapping string names to tensors.
      """
      if summary_logdir is None:
        with summary_ops.never_record_summaries():
          return self._all_metric_results()
      else:
        def f():
          with summary_ops.create_file_writer(
              summary_logdir).as_default(), summary_ops.always_record_summaries():
            return self._all_metric_results()
  
        if context.executing_eagerly():
          return f()
        else:
          return function.defun(f)()
function_tokens: def all_metric_results ( self , summary_logdir = None ) : if summary_logdir is None : with summary_ops . never_record_summaries ( ) : return self . _all_metric_results ( ) else : def f ( ) : with summary_ops . create_file_writer ( summary_logdir ) . as_default ( ) , summary_ops . always_record_summaries ( ) : return self . _all_metric_results ( ) if context . executing_eagerly ( ) : return f ( ) else : return function . defun ( f ) ( )