mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-30 19:07:25 +08:00
Merge 31b27afe69 into ec1896aceb
This commit is contained in:
commit
456e1697a4
@ -519,7 +519,7 @@ except:
|
||||
pass
|
||||
|
||||
|
||||
if ENABLE_PYTORCH_ATTENTION:
|
||||
if ENABLE_PYTORCH_ATTENTION and cpu_state != CPUState.CPU:
|
||||
torch.backends.cuda.enable_math_sdp(True)
|
||||
torch.backends.cuda.enable_flash_sdp(True)
|
||||
torch.backends.cuda.enable_mem_efficient_sdp(True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user