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
c10861ee
Unverified
Commit
c10861ee
authored
Aug 01, 2023
by
YiYi Xu
Committed by
GitHub
Aug 01, 2023
Browse files
fix test_float16_inference (#4412)
fix Co-authored-by:
yiyixuxu
<
yixu310@gmail,com
>
parent
94b332c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/pipelines/test_pipelines_common.py
tests/pipelines/test_pipelines_common.py
+1
-0
No files found.
tests/pipelines/test_pipelines_common.py
View file @
c10861ee
...
@@ -528,6 +528,7 @@ class PipelineTesterMixin:
...
@@ -528,6 +528,7 @@ class PipelineTesterMixin:
pipe
.
to
(
torch_device
)
pipe
.
to
(
torch_device
)
pipe
.
set_progress_bar_config
(
disable
=
None
)
pipe
.
set_progress_bar_config
(
disable
=
None
)
components
=
self
.
get_dummy_components
()
pipe_fp16
=
self
.
pipeline_class
(
**
components
)
pipe_fp16
=
self
.
pipeline_class
(
**
components
)
pipe_fp16
.
to
(
torch_device
,
torch
.
float16
)
pipe_fp16
.
to
(
torch_device
,
torch
.
float16
)
pipe_fp16
.
set_progress_bar_config
(
disable
=
None
)
pipe_fp16
.
set_progress_bar_config
(
disable
=
None
)
...
...
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