Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[export] disable forced specializations, even when solvable with sing…
…le var (#126925) Summary: Previously #124949 added the ability to disable forced specializations on dynamic shapes for export, keeping dynamism for complex guards instead of specializing, allowing unsoundness by having the user fail at runtime. It avoided disabling one case: single-variable equality guards, where a variable is specified as dynamic but can be solvable for a concrete value, suggesting the correct behavior is specialization. For example, guard : Eq(s0 // 4, 400) suggests s0 should specialize to 1600. In debugging, some users (e.g. APS) would like to keep this dynamic, and defer to failing at runtime instead. This PR adds this, so now all forced specializations should be turned off. Mostly this should be used for debugging, since it produces unsoundness, and lets the user proceed with (probably) incorrect dynamism. Test Plan: export tests Differential Revision: D57698601 Pull Request resolved: #126925 Approved by: https://github.com/angelayi
- Loading branch information