mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
IPEX disable interpolate cpu fallback with IPEX 2.5
This commit is contained in:
@@ -313,7 +313,7 @@ def torch_load(f, map_location=None, *args, **kwargs):
|
||||
|
||||
# Hijack Functions:
|
||||
def ipex_hijacks(legacy=True):
|
||||
if legacy:
|
||||
if legacy and float(torch.__version__[:3]) < 2.5:
|
||||
torch.nn.functional.interpolate = interpolate
|
||||
torch.tensor = torch_tensor
|
||||
torch.Tensor.to = Tensor_to
|
||||
|
||||
Reference in New Issue
Block a user