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
9ef43f38
Unverified
Commit
9ef43f38
authored
Apr 24, 2024
by
Dhruv Nair
Committed by
GitHub
Apr 24, 2024
Browse files
Fix test for consistency decoder. (#7746)
update
parent
88018fcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/autoencoders/test_models_vae.py
tests/models/autoencoders/test_models_vae.py
+1
-1
No files found.
tests/models/autoencoders/test_models_vae.py
View file @
9ef43f38
...
...
@@ -1153,5 +1153,5 @@ class ConsistencyDecoderVAEIntegrationTests(unittest.TestCase):
shapes
=
[(
1
,
4
,
73
,
97
),
(
1
,
4
,
97
,
73
),
(
1
,
4
,
49
,
65
),
(
1
,
4
,
65
,
49
)]
with
torch
.
no_grad
():
for
shape
in
shapes
:
image
=
torch
.
zeros
(
shape
,
device
=
torch_device
)
image
=
torch
.
zeros
(
shape
,
device
=
torch_device
,
dtype
=
pipe
.
vae
.
dtype
)
pipe
.
vae
.
decode
(
image
)
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