Skip to content

Commit 04adb74

Browse files
anijain2305pytorchmergebot
authored andcommitted
[inductor][cond] Remove redundant prefix (pytorch#137718)
Pull Request resolved: pytorch#137718 Approved by: https://github.com/eellison ghstack dependencies: pytorch#137200
1 parent cd02c85 commit 04adb74

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

torch/_inductor/codegen/wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,8 +2085,6 @@ def codegen_subgraph(self, subgraph, outer_inputs, outer_outputs):
20852085
def codegen_conditional(self, conditional):
20862086
name = conditional.get_name()
20872087

2088-
self.writeline(f"{name} = [None] * {len(conditional.outputs)}")
2089-
20902088
outer_inputs = [buf.codegen_reference() for buf in conditional.operands]
20912089
outer_outputs = [f"{name}[{i}]" for i in range(len(conditional.outputs))]
20922090

0 commit comments

Comments
 (0)