Fix test_startup.py for torch 2.12 (#40636)

Signed-off-by: Angela Yi <yiangela7@gmail.com>
This commit is contained in:
Angela Yi
2026-04-22 19:31:41 +00:00
committed by GitHub
parent d622e27d2b
commit eb6661d522
3 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ def _apply_constrain_to_fx_strides_patch():
_lowering.constrain_to_fx_strides = _patched
if is_torch_equal_or_newer("2.10.0") and not is_torch_equal_or_newer("2.12.0"):
if is_torch_equal_or_newer("2.10.0") and not is_torch_equal_or_newer("2.12.0.dev"):
import builtins as _builtins
import pickle