Commit 7cdf504
Fix evaluate_expr to include suppress_guards_tls in cache key (pytorch#152661)
ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.
This came up because pytorch#152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.
Pull Request resolved: pytorch#152661
Approved by: https://github.com/laithsakka1 parent 30a3c5d commit 7cdf504
2 files changed
+38
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
228 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
236 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
237 | 245 | | |
238 | 246 | | |
239 | 247 | | |
| |||
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
284 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
285 | 297 | | |
286 | 298 | | |
287 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3936 | 3936 | | |
3937 | 3937 | | |
3938 | 3938 | | |
3939 | | - | |
| 3939 | + | |
| 3940 | + | |
3940 | 3941 | | |
3941 | 3942 | | |
3942 | 3943 | | |
| |||
6811 | 6812 | | |
6812 | 6813 | | |
6813 | 6814 | | |
6814 | | - | |
6815 | | - | |
6816 | 6815 | | |
6817 | 6816 | | |
6818 | 6817 | | |
| |||
6821 | 6820 | | |
6822 | 6821 | | |
6823 | 6822 | | |
| 6823 | + | |
| 6824 | + | |
| 6825 | + | |
| 6826 | + | |
| 6827 | + | |
| 6828 | + | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
| 6843 | + | |
6824 | 6844 | | |
6825 | 6845 | | |
6826 | 6846 | | |
| |||
6852 | 6872 | | |
6853 | 6873 | | |
6854 | 6874 | | |
6855 | | - | |
6856 | | - | |
6857 | | - | |
6858 | | - | |
6859 | 6875 | | |
6860 | 6876 | | |
6861 | 6877 | | |
| |||
0 commit comments