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
ae875436
Commit
ae875436
authored
Sep 23, 2023
by
comfyanonymous
Browse files
Merge branch 'cast_intel' of
https://github.com/simonlui/ComfyUI
parents
fd93c759
eec449ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy/model_management.py
comfy/model_management.py
+2
-0
No files found.
comfy/model_management.py
View file @
ae875436
...
...
@@ -488,6 +488,8 @@ def cast_to_device(tensor, device, dtype, copy=False):
elif
tensor
.
dtype
==
torch
.
bfloat16
:
if
hasattr
(
device
,
'type'
)
and
device
.
type
.
startswith
(
"cuda"
):
device_supports_cast
=
True
elif
is_intel_xpu
():
device_supports_cast
=
True
if
device_supports_cast
:
if
copy
:
...
...
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