Skip to content

Commit fd92934

Browse files
committed
fix a bug in basic.py
1 parent da8f019 commit fd92934

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
@@ -1003,7 +1003,7 @@ def make_stringified_guard(self) -> list[StringifiedExpression]:
10031003
return super().make_stringified_guard()
10041004
guards = [
10051005
FasterStringifiedExpression(
1006-
f"id(type({{}})) == {self.get_py_type()}",
1006+
f"id(type({{}})) == {id(self.get_py_type())}",
10071007
paddle.core.TypeMatchGuard(self.get_py_type()),
10081008
[frame_value_tracer],
10091009
union_free_vars(frame_value_tracer.free_vars),

0 commit comments

Comments
 (0)