class_docstr: This [`Metric`](./metric.md) breaks with the typical `Metric` API and just stores values that were
  computed in some fashion outside of a `Metric`.  If you have some external code that computes
  the metric for you, for instance, you can use this to report the average result using our
  `Metric` API.
docstr: # Parameters
  
  value : `float`
      The value to average.
docstr_tok: ["#","Parameters","value",":","`","float","`","The","value","to","average","."]
code: def __call__(self, value):
      """
      # Parameters
  
      value : `float`
          The value to average.
      """
      self._count += dist_reduce_sum(1)
      self._total_value += dist_reduce_sum(
          float(list(self.detach_tensors(value))[0])
      )
  
file_path: allennlp/allennlp/training/metrics/average.py
imports: from allennlp.training.metrics.metric import Metric
  from allennlp.nn.util import dist_reduce_sum
label_desc: Use image node_id 2 for calling the Average obj's underlying member method code with example usage: obj.__call__(value) without return types