Skip to content

Commit 1979a52

Browse files
committed
fix slice make_stringified_guard
1 parent 8813642 commit 1979a52

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/jit/sot/opcode_translator/executor/variables

1 file changed

+1
-1
lines changed

python/paddle/jit/sot/opcode_translator/executor/variables/basic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ def make_stringified_guard(self) -> list[StringifiedExpression]:
15111511
frame_value_tracer = self.tracker.trace_value_from_frame()
15121512
result = [
15131513
FasterStringifiedExpression(
1514-
"id(type({{}})) == id(slice)",
1514+
f"id(type({{}})) == {id(slice)}",
15151515
paddle.framework.core.TypeMatchGuard(slice),
15161516
[frame_value_tracer],
15171517
frame_value_tracer.free_vars,

0 commit comments

Comments
 (0)