We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da8f019 commit fd92934Copy full SHA for fd92934
python/paddle/jit/sot/opcode_translator/executor/variables/basic.py
@@ -1003,7 +1003,7 @@ def make_stringified_guard(self) -> list[StringifiedExpression]:
1003
return super().make_stringified_guard()
1004
guards = [
1005
FasterStringifiedExpression(
1006
- f"id(type({{}})) == {self.get_py_type()}",
+ f"id(type({{}})) == {id(self.get_py_type())}",
1007
paddle.core.TypeMatchGuard(self.get_py_type()),
1008
[frame_value_tracer],
1009
union_free_vars(frame_value_tracer.free_vars),
0 commit comments