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
258dbc06
Commit
258dbc06
authored
Apr 14, 2024
by
comfyanonymous
Browse files
Fix some memory related issues.
parent
744ac944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
comfy/model_management.py
comfy/model_management.py
+2
-1
No files found.
comfy/model_management.py
View file @
258dbc06
...
...
@@ -617,7 +617,8 @@ def supports_dtype(device, dtype): #TODO
def
device_supports_non_blocking
(
device
):
if
is_device_mps
(
device
):
return
False
#pytorch bug? mps doesn't support non blocking
return
True
return
False
# return True #TODO: figure out why this causes issues
def
cast_to_device
(
tensor
,
device
,
dtype
,
copy
=
False
):
device_supports_cast
=
False
...
...
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