We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be73dd commit 182d16fCopy full SHA for 182d16f
helion/_compiler/device_ir.py
@@ -300,7 +300,8 @@ def __str__(self) -> str:
300
301
def debug_str(self) -> str:
302
result = str(self)
303
- 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
304
+ return re.sub(r" *(# File:\s+).*/([^/:]+:\d+)", r" \1.../\2", result)
305
306
def add_graph(
307
self,
0 commit comments