suggested fixes for congruences (#2299)
Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/2299 X-link: https://github.com/pytorch/pytorch/pull/121418 Now that we have derived dims we can suggest fixes when we simply `Mod(...)` guards, a.k.a. congruences. E.g., when we see that `dim % 2 == 0` we can suggest the fix `dim = 2*_dim` where the range of `_dim` is reverse-engineered given the original range of `dim`. bypass-github-pytorch-ci-checks Reviewed By: angelayi Differential Revision: D54636152 fbshipit-source-id: 049d008bdf93defecfae8d6341755c3135115a01
A
Avik Chaudhuri committed
daaecb1ccacc36cf296a00798e202df5b931b340
Parent: 2487a4e
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 3/8/2024, 7:11:42 AM