class_docstr: This `Metric` calculates the mean absolute error (MAE) between two tensors.
code: def __init__(self) -> None:
      self._absolute_error = 0.0
      self._total_count = 0.0
  
file_path: allennlp/allennlp/training/metrics/mean_absolute_error.py
imports: from typing import Dict, Optional
  import torch
  from allennlp.training.metrics.metric import Metric
  from allennlp.nn.util import dist_reduce_sum
label_desc: Use image node_id 1 to create a new MeanAbsoluteError object from inherited base classes: Metric with example: obj = MeanAbsoluteError()