Commit e5f8699
[inductor] Fix ModularIndexing assumptions (pytorch#152993)
Fixes pytorch#151198.
Since the result of ModularIndexing can be zero due to the modulo
operation, we should not make any assumption about ModularIndexing
being positive
Pull Request resolved: pytorch#152993
Approved by: https://github.com/yf2251 parent d900c68 commit e5f8699
File tree
2 files changed
+7
-4
lines changed- test/inductor
- torch/utils/_sympy
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
208 | 215 | | |
209 | 216 | | |
210 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | 366 | | |
371 | 367 | | |
372 | 368 | | |
| |||
0 commit comments