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
08cc36dd
Unverified
Commit
08cc36dd
authored
Dec 17, 2022
by
Anton Lozhkov
Committed by
GitHub
Dec 17, 2022
Browse files
Fix MPS fast test warnings (#1744)
* unset level
parent
723e8f6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_pipelines_common.py
tests/test_pipelines_common.py
+1
-1
No files found.
tests/test_pipelines_common.py
View file @
08cc36dd
...
...
@@ -233,11 +233,11 @@ class PipelineTesterMixin:
output
=
pipe
(
**
inputs
)
logger
.
setLevel
(
level
=
diffusers
.
logging
.
WARNING
)
if
torch_device
!=
"mps"
:
# TODO(Pedro) - not sure why, but not at all reproducible at the moment it seems
# make sure that batched and non-batched is identical
assert
np
.
abs
(
output_batch
[
0
][
0
]
-
output
[
0
][
0
]).
max
()
<
1e-4
logger
.
setLevel
(
level
=
diffusers
.
logging
.
WARNING
)
def
test_dict_tuple_outputs_equivalent
(
self
):
if
torch_device
==
"mps"
and
self
.
pipeline_class
in
(
...
...
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