Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion helion/_compiler/device_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def __str__(self) -> str:

def debug_str(self) -> str:
result = str(self)
return re.sub(r" ?(# File:\s+).*/([^/:]+:\d+)", r"\1.../\2", result)
# Normalize indentation to 4 spaces to handle both PyTorch 2.9 and nightly formatting
return re.sub(r" *(# File:\s+).*/([^/:]+:\d+)", r" \1.../\2", result)

def add_graph(
self,
Expand Down
Loading