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
renzhc
diffusers_dcu
Commits
9cc59ba0
Unverified
Commit
9cc59ba0
authored
Feb 02, 2024
by
UmerHA
Committed by
GitHub
Feb 02, 2024
Browse files
[Contributor Experience] Fix test collection on MPS (#6808)
* Update testing_utils.py * Update testing_utils.py
parent
adcbe674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/utils/testing_utils.py
src/diffusers/utils/testing_utils.py
+2
-0
No files found.
src/diffusers/utils/testing_utils.py
View file @
9cc59ba0
...
...
@@ -854,6 +854,8 @@ def _is_torch_fp64_available(device):
import
torch
device
=
torch
.
device
(
device
)
try
:
x
=
torch
.
zeros
((
2
,
2
),
dtype
=
torch
.
float64
).
to
(
device
)
_
=
torch
.
mul
(
x
,
x
)
...
...
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