mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-15 08:40:50 +08:00
Merge 31b27afe69 into 519c941165
This commit is contained in:
commit
9892cc33e7
@ -364,7 +364,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