mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Call writeline from writelines (#124515)
This makes it more convenient to add a breakpoint here. Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/124515 Approved by: https://github.com/albanD
This commit is contained in:
parent
a32eac345f
commit
afa78ad08c
|
|
@ -1345,7 +1345,7 @@ class WrapperCodeGen(CodeGen):
|
|||
|
||||
def writelines(self, lines):
|
||||
for line in lines:
|
||||
self.lines.append(line)
|
||||
self.writeline(line)
|
||||
|
||||
def enter_context(self, ctx):
|
||||
self.lines.append(LineContext(ctx))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user