mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[dynamo 3.11] support new jump opcodes (#93986)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93986 Approved by: https://github.com/jansel, https://github.com/albanD, https://github.com/malfet, https://github.com/voznesenskym
This commit is contained in:
committed by
PyTorch MergeBot
parent
3faa636196
commit
d4d13d99e4
@ -16,6 +16,7 @@ if sys.version_info >= (3, 11):
|
||||
else:
|
||||
TERMINAL_OPCODES.add(dis.opmap["JUMP_ABSOLUTE"])
|
||||
JUMP_OPCODES = set(dis.hasjrel + dis.hasjabs)
|
||||
JUMP_OPNAMES = {dis.opname[opcode] for opcode in JUMP_OPCODES}
|
||||
HASLOCAL = set(dis.haslocal)
|
||||
HASFREE = set(dis.hasfree)
|
||||
|
||||
|
Reference in New Issue
Block a user