Fix lowercasing of kernel

This commit is contained in:
a-One-Fan 2023-07-13 22:14:16 +03:00
parent 1271237d89
commit e99a905d7c

View File

@ -9,7 +9,7 @@ DEVICE_BATCH_SIZE_MAP = [(14, 16), (10,8), (7,4)]
from inspect import currentframe, getframeinfo
import gc
is_WSL = 'wsl' in os.popen("uname -r").read().tolower()
is_WSL = 'wsl' in os.popen("uname -r").read().lower()
def xpu_get_mem(device=0):
total_memory = ipex.xpu.get_device_properties(device).total_memory