mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-02 14:34:54 +08:00
Revert "Revert "Enabling SymInt in autograd; take 3 (#81145)"" ; make sure is_intlist checks for symintnodes (#82189)
### Description <!-- What did you change and why was it needed? --> ### Issue <!-- Link to Issue ticket or RFP --> ### Testing <!-- How did you test your change? --> Pull Request resolved: https://github.com/pytorch/pytorch/pull/82189 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
30e74be784
commit
d2c47d559c
@ -1123,9 +1123,9 @@ def sort_overloads(
|
||||
str(t1) == "Tensor[]"
|
||||
and str(t2).find("[]") != -1
|
||||
or
|
||||
# Prioritize SymIntArrayRef overload over IntArrayRef
|
||||
str(t1) == "int[]"
|
||||
and str(t2) == "SymInt[]"
|
||||
# Prioritize IntArrayRef overload over SymIntArrayRef
|
||||
str(t1) == "SymInt[]"
|
||||
and str(t2) == "int[]"
|
||||
)
|
||||
|
||||
def is_smaller(s1: PythonSignature, s2: PythonSignature) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user