mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[3.13, dynamo] fix CALL_FUNCTION_EX in symbolic_convert (#130460)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/130460 Approved by: https://github.com/jansel ghstack dependencies: #130459
This commit is contained in:
parent
8c9a996091
commit
82b2e7a253
1 changed files with 8 additions and 1 deletions
|
|
@ -1497,8 +1497,15 @@ class InstructionTranslatorBase(
|
|||
argsvars = self.pop()
|
||||
else:
|
||||
unimplemented("CALL_FUNCTION_EX")
|
||||
|
||||
if sys.version_info >= (3, 13):
|
||||
# 3.13 swapped null and callable
|
||||
null = self.pop()
|
||||
assert isinstance(null, NullVariable)
|
||||
|
||||
fn = self.pop()
|
||||
if sys.version_info >= (3, 11):
|
||||
|
||||
if sys.version_info >= (3, 11) and sys.version_info < (3, 13):
|
||||
null = self.pop()
|
||||
assert isinstance(null, NullVariable)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue