Commit ebfcf0a9 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix issue.

parent 85865158
...@@ -185,7 +185,7 @@ def should_use_fp16(): ...@@ -185,7 +185,7 @@ def should_use_fp16():
if torch.cuda.is_bf16_supported(): if torch.cuda.is_bf16_supported():
return True return True
props = torch.cuda.get_device_properties() props = torch.cuda.get_device_properties("cuda")
if props.major < 7: if props.major < 7:
return False return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment