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
3e2309f1
Commit
3e2309f1
authored
Jul 12, 2023
by
KarryCharon
Browse files
fix mps miss import
parent
2b2a1474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy/model_management.py
comfy/model_management.py
+1
-0
No files found.
comfy/model_management.py
View file @
3e2309f1
...
@@ -49,6 +49,7 @@ except:
...
@@ -49,6 +49,7 @@ except:
try
:
try
:
if
torch
.
backends
.
mps
.
is_available
():
if
torch
.
backends
.
mps
.
is_available
():
cpu_state
=
CPUState
.
MPS
cpu_state
=
CPUState
.
MPS
import
torch.mps
except
:
except
:
pass
pass
...
...
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