Skip to content

Commit

Permalink
Handle empty label after heuristics
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Jan 10, 2025
1 parent 29800d2 commit cb6e795
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lglpy/timeline/data/processed_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,14 @@ def get_workload_name(self) -> str:
Returns:
Returns the label for use in the UI.
'''
if not self.label_stack:
label = None
if self.label_stack:
label = self.get_label_name()

# Default label if no label or get_label_name heuristics stripped it
if not label:
return GPUStageID.get_ui_name(self.stage)

label = self.get_label_name()
assert label
return label

def get_long_label(self) -> str:
Expand Down

0 comments on commit cb6e795

Please sign in to comment.