Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
0d7b0a4d
Commit
0d7b0a4d
authored
Aug 20, 2023
by
comfyanonymous
Browse files
Small cleanups.
parent
92254659
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comfy/model_management.py
comfy/model_management.py
+4
-1
No files found.
comfy/model_management.py
View file @
0d7b0a4d
...
@@ -589,7 +589,10 @@ def should_use_fp16(device=None, model_params=0):
...
@@ -589,7 +589,10 @@ def should_use_fp16(device=None, model_params=0):
if
cpu_mode
()
or
mps_mode
():
if
cpu_mode
()
or
mps_mode
():
return
False
#TODO ?
return
False
#TODO ?
if
torch
.
cuda
.
is_bf16_supported
()
or
xpu_available
:
if
xpu_available
:
return
True
if
torch
.
cuda
.
is_bf16_supported
():
return
True
return
True
props
=
torch
.
cuda
.
get_device_properties
(
"cuda"
)
props
=
torch
.
cuda
.
get_device_properties
(
"cuda"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment