class_docstr: A simple class that summarizes a single tensor. The basic functionality
  of this class is two operations .update and .summary
  
  If possible use `Summarizer` instead.
docstr: Args:
      stats (list[Stat]): A list of all the Stat objects that
          need to be updated. This must be in the appropriate order for
          updates (see `_reorder_stats`)
      summary_stats (list[int]): A list of indicies, referencing `stats`,
          which are the stats you want to show in the .summary property. This
          does not require any specific order.
docstr_tok: ["Args",":","stats","(","list","[","Stat","]",")",":","A","list","of","all","the","Stat","objects","that","need","to","be","updated",".","This","must","be","in","the","appropriate","order","for","updates","(","see","`","_reorder_stats","`",")","summary_stats","(","list","[","int","]",")",":","A","list","of","indicies",",","referencing","`","stats","`",",","which","are","the","stats","you","want","to","show","in","the",".summary","property",".","This","does","not","require","any","specific","order","."]
code: def __init__(
      self, stats: List[Stat], summary_stats_indices: List[int]
  ) -> None:
      r"""
      Args:
          stats (list[Stat]): A list of all the Stat objects that
              need to be updated. This must be in the appropriate order for
              updates (see `_reorder_stats`)
          summary_stats (list[int]): A list of indicies, referencing `stats`,
              which are the stats you want to show in the .summary property. This
              does not require any specific order.
      """
      self._stats = stats
      self._stat_to_stat = {stat: stat for stat in self._stats}
      self._summary_stats = [stats[i] for i in summary_stats_indices]
  
      for stat in stats:
          stat._other_stats = self
          stat.init()
  
file_path: captum/captum/attr/_utils/summarizer.py
imports: from typing import Dict, List, Optional, Tuple, Type, Union
  import torch
  from captum.attr._utils.stat import Count, Max, Mean, Min, MSE, Stat, StdDev, Sum, Var
  from captum.log import log_usage
  from torch import Tensor
label_desc: Use image node_id 1 to create a new SummarizerSingleTensor object  with example: obj = SummarizerSingleTensor(stats, summary_stats_indices)