mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Disable IPEX attention if the GPU supports 64 bit
This commit is contained in:
@@ -166,8 +166,9 @@ def ipex_init(): # pylint: disable=too-many-statements
|
||||
torch.cuda.get_device_id_list_per_card = torch.xpu.get_device_id_list_per_card
|
||||
|
||||
ipex_hijacks()
|
||||
attention_init()
|
||||
ipex_diffusers()
|
||||
if not torch.xpu.has_fp64_dtype():
|
||||
attention_init()
|
||||
ipex_diffusers()
|
||||
except Exception as e:
|
||||
return False, e
|
||||
return True, None
|
||||
|
||||
Reference in New Issue
Block a user