class_docstr: Allows measuring model robustness for a given attack or set of attacks. This class
  can be used with any metric(s) as well as any set of attacks, either based on
  attacks / perturbations from captum.robust such as FGSM or PGD or external
  augmentation methods or perturbations such as torchvision transforms.
docstr: Returns average results over all previous batches evaluated.
  
  Returns:
  
      - **summary** Dict: str -> Dict[str, Union[Tensor, Tuple[Tensor, ...]]]:
          Dictionary containing summarized average attack results.
          Maps attack name (with "Mean Attempt", "Max Attempt" and "Min Attempt"
          suffixes if num_attempts > 1) to dictionary containing a key of "mean"
          maintaining summarized results,
          which is the running mean of results over all batches
          since construction or previous reset call. Tensor metrics are averaged
          over dimension 0 for each batch, in order to aggregte metrics collected
          per batch.
docstr_tok: ["Returns","average","results","over","all","previous","batches","evaluated",".","Returns",":","-","*","*","summary","*","*","Dict",":","str","-",">","Dict","[","str",",","Union","[","Tensor",",","Tuple","[","Tensor",",","...","]","]","]",":","Dictionary","containing","summarized","average","attack","results",".","Maps","attack","name","(","with","``","Mean","Attempt","''",",","``","Max","Attempt","''","and","``","Min","Attempt","''","suffixes","if","num_attempts",">","1",")","to","dictionary","containing","a","key","of","``","mean","''","maintaining","summarized","results",",","which","is","the","running","mean","of","results","over","all","batches","since","construction","or","previous","reset","call",".","Tensor","metrics","are","averaged","over","dimension","0","for","each","batch",",","in","order","to","aggregte","metrics","collected","per","batch","."]
code: def summary(self) -> Dict[str, Dict[str, MetricResultType]]:
      r"""
      Returns average results over all previous batches evaluated.
  
      Returns:
  
          - **summary** Dict: str -> Dict[str, Union[Tensor, Tuple[Tensor, ...]]]:
              Dictionary containing summarized average attack results.
              Maps attack name (with "Mean Attempt", "Max Attempt" and "Min Attempt"
              suffixes if num_attempts > 1) to dictionary containing a key of "mean"
              maintaining summarized results,
              which is the running mean of results over all batches
              since construction or previous reset call. Tensor metrics are averaged
              over dimension 0 for each batch, in order to aggregte metrics collected
              per batch.
      """
      return {
          key: self._format_summary(
              cast(Union[Dict, List], self.summary_results[key].summary)
          )
          for key in self.summary_results
      }
  
imports: import warnings
  from collections import namedtuple
  from typing import Any, Callable, cast, Dict, Generic, List, NamedTuple, Optional, Tuple, TypeVar, Union
  from captum._utils.common import _expand_additional_forward_args, _format_additional_forward_args, _reduce_list
  from captum.attr import Max, Mean, Min, Summarizer
  from captum.log import log_usage
  from captum.robust._core.perturbation import Perturbation
  from torch import Tensor
label_desc: Use image node_id 8 for calling the AttackComparator obj's underlying member method code with example usage: obj.summary() and returns: unknown