pytorch
59ee6cd8 - fix soundness bug with unsupported constraints (#102897)

Commit
1 year ago
fix soundness bug with unsupported constraints (#102897) We do not raise constraint violations for complex binary conditions, such as conditions involving `%`. Moreover, while these constraints are discovered by our solver, the solver does not inject new constraint violations. This can result in cases where export passes, appropriate assertions are not added, and we get runtime crashes. Now, when the solver discovers constraints that are too complex, we force-specialize the involved dimensions and raise a constraint violation when such dimensions are marked dynamic. This forces the user to remove the dynamic marking, and causes the appropriate specialization assertions to be added. Differential Revision: [D46415786](https://our.internmc.facebook.com/intern/diff/D46415786/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/102897 Approved by: https://github.com/tugsbayasgalan
Author
Committer
Parents
Loading