class_docstr: A list of Events (for pretty printing).
class_docstr_tok: ["A","list","of","Events","(","for","pretty","printing",")","."]
docstr: Print an EventList as a nicely formatted table.
  
  Args:
      sort_by (str, optional): Attribute used to sort entries. By default
          they are printed in the same order as they were registered.
          Valid keys include: ``cpu_time``, ``cuda_time``, ``cpu_time_total``,
          ``cuda_time_total``, ``cpu_memory_usage``, ``cuda_memory_usage``,
          ``self_cpu_memory_usage``, ``self_cuda_memory_usage``, ``count``.
      top_level_events_only(bool, optional): Boolean flag to determine the
          selection of events to display. If true, the profiler will only
          display events at top level like top-level invocation of python
          `lstm`, python `add` or other functions, nested events like low-level
          cpu/cuda ops events are omitted for profiler result readability.
  
  Returns:
      A string containing the table.
docstr_tok: ["Print","an","EventList","as","a","nicely","formatted","table",".","Args",":","sort_by","(","str",",","optional",")",":","Attribute","used","to","sort","entries",".","By","default","they","are","printed","in","the","same","order","as","they","were","registered",".","Valid","keys","include",":","``","cpu_time","``",",","``","cuda_time","``",",","``","cpu_time_total","``",",","``","cuda_time_total","``",",","``","cpu_memory_usage","``",",","``","cuda_memory_usage","``",",","``","self_cpu_memory_usage","``",",","``","self_cuda_memory_usage","``",",","``","count","``",".","top_level_events_only","(","bool",",","optional",")",":","Boolean","flag","to","determine","the","selection","of","events","to","display",".","If","true",",","the","profiler","will","only","display","events","at","top","level","like","top-level","invocation","of","python","`","lstm","`",",","python","`","add","`","or","other","functions",",","nested","events","like","low-level","cpu\/cuda","ops","events","are","omitted","for","profiler","result","readability",".","Returns",":","A","string","containing","the","table","."]
code: def table(
      self,
      sort_by=None,
      row_limit=100,
      max_src_column_width=75,
      max_name_column_width=55,
      max_shapes_column_width=80,
      header=None,
      top_level_events_only=False,
  ):
      """Print an EventList as a nicely formatted table.
  
      Args:
          sort_by (str, optional): Attribute used to sort entries. By default
              they are printed in the same order as they were registered.
              Valid keys include: ``cpu_time``, ``cuda_time``, ``cpu_time_total``,
              ``cuda_time_total``, ``cpu_memory_usage``, ``cuda_memory_usage``,
              ``self_cpu_memory_usage``, ``self_cuda_memory_usage``, ``count``.
          top_level_events_only(bool, optional): Boolean flag to determine the
              selection of events to display. If true, the profiler will only
              display events at top level like top-level invocation of python
              `lstm`, python `add` or other functions, nested events like low-level
              cpu/cuda ops events are omitted for profiler result readability.
  
      Returns:
          A string containing the table.
      """
      return _build_table(
          self,
          sort_by=sort_by,
          row_limit=row_limit,
          max_src_column_width=max_src_column_width,
          max_name_column_width=max_name_column_width,
          max_shapes_column_width=max_shapes_column_width,
          header=header,
          profile_memory=self._profile_memory,
          with_flops=self._with_flops,
          top_level_events_only=top_level_events_only,
      )
  
imports: import bisect
  import itertools
  import math
  from collections import defaultdict, namedtuple
  from operator import attrgetter
  from typing import Any, Dict, List, Optional, Tuple
  import torch
  from torch.autograd import DeviceType
label_desc: Use image node_id 8 for calling the EventList obj's underlying member method code with example usage: obj.table(sort_by, row_limit, max_src_column_width, max_name_column_width, max_shapes_column_width, header, top_level_events_only) and returns: _build_table