mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[inductor] Fix error in debug_str_extra (#134747)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/134747 Approved by: https://github.com/Skylion007, https://github.com/shunting314
This commit is contained in:
parent
43e1df64f8
commit
202e5cc87d
|
|
@ -1044,10 +1044,10 @@ class FusedSchedulerNode(BaseSchedulerNode):
|
|||
for i, node in enumerate(self.snodes)
|
||||
]
|
||||
node = self.snodes[0].node
|
||||
assert node is not None
|
||||
device = node.get_device()
|
||||
if ir.is_triton(device):
|
||||
lines.extend(debug_triton_code(self))
|
||||
if node is not None:
|
||||
device = node.get_device()
|
||||
if ir.is_triton(device):
|
||||
lines.extend(debug_triton_code(self))
|
||||
|
||||
return textwrap.indent("\n".join(lines).rstrip(), " ")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user