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
OpenDAS
diffusers
Commits
2a84e8bb
Unverified
Commit
2a84e8bb
authored
Nov 17, 2023
by
Will Berman
Committed by
GitHub
Nov 17, 2023
Browse files
fix memory consistency decoder test (#5828)
Co-authored-by:
Dhruv Nair
<
dhruv.nair@gmail.com
>
parent
c896b841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/models/test_models_vae.py
tests/models/test_models_vae.py
+1
-0
No files found.
tests/models/test_models_vae.py
View file @
2a84e8bb
...
@@ -804,6 +804,7 @@ class ConsistencyDecoderVAEIntegrationTests(unittest.TestCase):
...
@@ -804,6 +804,7 @@ class ConsistencyDecoderVAEIntegrationTests(unittest.TestCase):
gc
.
collect
()
gc
.
collect
()
torch
.
cuda
.
empty_cache
()
torch
.
cuda
.
empty_cache
()
@
torch
.
no_grad
()
def
test_encode_decode
(
self
):
def
test_encode_decode
(
self
):
vae
=
ConsistencyDecoderVAE
.
from_pretrained
(
"openai/consistency-decoder"
)
# TODO - update
vae
=
ConsistencyDecoderVAE
.
from_pretrained
(
"openai/consistency-decoder"
)
# TODO - update
vae
.
to
(
torch_device
)
vae
.
to
(
torch_device
)
...
...
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