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
0bab4476
Unverified
Commit
0bab4476
authored
Jun 21, 2023
by
Will Berman
Committed by
GitHub
Jun 21, 2023
Browse files
relax tol attention conversion test (#3842)
parent
1f020876
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/models/test_attention_processor.py
tests/models/test_attention_processor.py
+2
-2
No files found.
tests/models/test_attention_processor.py
View file @
0bab4476
...
...
@@ -115,5 +115,5 @@ class DeprecatedAttentionBlockTests(unittest.TestCase):
output_type
=
"np"
,
).
images
self
.
assertTrue
(
np
.
allclose
(
pre_conversion
,
conversion
))
self
.
assertTrue
(
np
.
allclose
(
conversion
,
after_conversion
))
self
.
assertTrue
(
np
.
allclose
(
pre_conversion
,
conversion
,
atol
=
1e-5
))
self
.
assertTrue
(
np
.
allclose
(
conversion
,
after_conversion
,
atol
=
1e-5
))
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