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
f06e4e55
Commit
f06e4e55
authored
Jan 12, 2023
by
Patrick von Platen
Browse files
make style
parent
57f7d259
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py
...ffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py
+1
-1
No files found.
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py
View file @
f06e4e55
...
@@ -214,7 +214,7 @@ class AltDiffusionPipeline(DiffusionPipeline):
...
@@ -214,7 +214,7 @@ class AltDiffusionPipeline(DiffusionPipeline):
cpu_offload
(
cpu_offloaded_model
,
device
)
cpu_offload
(
cpu_offloaded_model
,
device
)
if
self
.
safety_checker
is
not
None
:
if
self
.
safety_checker
is
not
None
:
cpu_offload
(
self
.
safety_checker
,
device
,
offload_buffers
=
True
)
cpu_offload
(
self
.
safety_checker
,
execution_device
=
device
,
offload_buffers
=
True
)
@
property
@
property
def
_execution_device
(
self
):
def
_execution_device
(
self
):
...
...
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