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
81b6fbf1
Commit
81b6fbf1
authored
Oct 28, 2022
by
Patrick von Platen
Browse files
higher precision for vae
parent
a7ae808e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/test_models_vae.py
tests/models/test_models_vae.py
+1
-1
No files found.
tests/models/test_models_vae.py
View file @
81b6fbf1
...
@@ -209,7 +209,7 @@ class AutoencoderKLIntegrationTests(unittest.TestCase):
...
@@ -209,7 +209,7 @@ class AutoencoderKLIntegrationTests(unittest.TestCase):
output_slice
=
sample
[
-
1
,
-
2
:,
:
2
,
-
2
:].
flatten
().
float
().
cpu
()
output_slice
=
sample
[
-
1
,
-
2
:,
:
2
,
-
2
:].
flatten
().
float
().
cpu
()
expected_output_slice
=
torch
.
tensor
(
expected_slice
)
expected_output_slice
=
torch
.
tensor
(
expected_slice
)
assert
torch_all_close
(
output_slice
,
expected_output_slice
,
atol
=
5
e-
3
)
assert
torch_all_close
(
output_slice
,
expected_output_slice
,
atol
=
1
e-
2
)
@
parameterized
.
expand
(
@
parameterized
.
expand
(
[
[
...
...
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