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: Retrieves `stat` from cache if this summarizer contains it.
  
  Note that `Stat` has it's hash/equality method overridden, such
  that an object with the same class and parameters will have the
  same hash. Thus, if you call `get` with a `Stat`, an associated
  `Stat` with the same class and parameters belonging to this object
  will be retrieved if it exists.
  
  If no such object is retrieved then `None` is returned.
  
  Args:
      stat (Stat):
          The stat to retrieve
  Returns:
      Stat
          The cached stat object or `None`
docstr_tok: ["Retrieves","`","stat","`","from","cache","if","this","summarizer","contains","it",".","Note","that","`","Stat","`","has","it","'s","hash\/equality","method","overridden",",","such","that","an","object","with","the","same","class","and","parameters","will","have","the","same","hash",".","Thus",",","if","you","call","`","get","`","with","a","`","Stat","`",",","an","associated","`","Stat","`","with","the","same","class","and","parameters","belonging","to","this","object","will","be","retrieved","if","it","exists",".","If","no","such","object","is","retrieved","then","`","None","`","is","returned",".","Args",":","stat","(","Stat",")",":","The","stat","to","retrieve","Returns",":","Stat","The","cached","stat","object","or","`","None","`"]
code: def get(self, stat: Stat) -> Optional[Stat]:
      r"""
      Retrieves `stat` from cache if this summarizer contains it.
  
      Note that `Stat` has it's hash/equality method overridden, such
      that an object with the same class and parameters will have the
      same hash. Thus, if you call `get` with a `Stat`, an associated
      `Stat` with the same class and parameters belonging to this object
      will be retrieved if it exists.
  
      If no such object is retrieved then `None` is returned.
  
      Args:
          stat (Stat):
              The stat to retrieve
      Returns:
          Stat
              The cached stat object or `None`
      """
      if stat not in self._stat_to_stat:
          return None
  
      return self._stat_to_stat[stat]
  
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 3 for calling the SummarizerSingleTensor obj's underlying member method code with example usage: obj.get(stat) and returns: self, None