mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
Fix IPEX support and add XPU device to device_utils
This commit is contained in:
@@ -64,11 +64,9 @@ import re
|
||||
|
||||
import diffusers
|
||||
import numpy as np
|
||||
|
||||
import torch
|
||||
|
||||
from library.device_utils import clean_memory, get_preferred_device
|
||||
from library.ipex_interop import init_ipex
|
||||
|
||||
from library.device_utils import init_ipex, clean_memory, get_preferred_device
|
||||
init_ipex()
|
||||
|
||||
import torchvision
|
||||
|
||||
Reference in New Issue
Block a user