Fix test_startup.py for torch 2.12 (#40636)
Signed-off-by: Angela Yi <yiangela7@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user