torch.cuda.graph_annotations.get_kernel_annotations
- torch.cuda.graph_annotations.get_kernel_annotations() → Mapping[int, list]
Return the live registry of recorded kernel annotations.
Keys are opaque integers matching the
field that CUPTI-based profilers attach to kernel events; values are the lists of annotation dicts recorded for that node. The registry accumulates across captures and is global to the process.