pytorch
ec10d23c - [dynamo] Fix list contains check (#95092)

Commit
2 years ago
[dynamo] Fix list contains check (#95092) Original issue was something like: ``` def func(x): assert x.size(-1) in [4, 5, 6], "bad" return x + x ``` where the contains check is comparing a symint (x.size(-1)) with other integers. Pull Request resolved: https://github.com/pytorch/pytorch/pull/95092 Approved by: https://github.com/voznesenskym, https://github.com/yanboliang
Author
Committer
Parents
Loading