Skip to content

Commit

Permalink
Fix some memory related issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Apr 14, 2024
1 parent 744ac94 commit 258dbc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comfy/model_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 258dbc0

Please sign in to comment.