mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
Fix issue.
This commit is contained in:
parent
f21b0255a0
commit
8141cd7f42
@ -185,7 +185,7 @@ def should_use_fp16():
|
||||
if torch.cuda.is_bf16_supported():
|
||||
return True
|
||||
|
||||
props = torch.cuda.get_device_properties()
|
||||
props = torch.cuda.get_device_properties("cuda")
|
||||
if props.major < 7:
|
||||
return False
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user