Skip to content

Commit 988669d

Browse files
authored
[SOT] Add call level to opcode executor log (#72783)
1 parent 5bdf2fb commit 988669d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ def step(self, instr: Instruction):
653653
self._current_line = instr.starts_line
654654
if not hasattr(self, instr.opname):
655655
raise FallbackError(f"opcode: {instr.opname} is not supported.")
656-
log_message = f"[Translate {self._name}] (line {self._current_line:>3}) {instr.opname:<12} {instr.argval}, stack is {self.stack}\n"
656+
log_message = f"[Translate {self._name} {len(self.call_stack)}] (line {self._current_line:>3}) {instr.opname:<12} {instr.argval}, stack is {self.stack}\n"
657657
log(3, log_message)
658658
code_file = self.vframe.code.co_filename
659659
code_line = self._current_line

0 commit comments

Comments
 (0)