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
chenpangpang
transformers
Commits
d453ea61
Unverified
Commit
d453ea61
authored
Jun 14, 2022
by
Younes Belkada
Committed by
GitHub
Jun 14, 2022
Browse files
fix tolerance for a bloom slow test (#17634)
parent
120649bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/bloom/test_modeling_bloom.py
tests/models/bloom/test_modeling_bloom.py
+1
-1
No files found.
tests/models/bloom/test_modeling_bloom.py
View file @
d453ea61
...
@@ -723,7 +723,7 @@ class BloomEmbeddingTest(unittest.TestCase):
...
@@ -723,7 +723,7 @@ class BloomEmbeddingTest(unittest.TestCase):
}
}
if
cuda_available
:
if
cuda_available
:
self
.
assertEqual
(
MEAN_VALUE_LAST_LM
,
logits
.
last_hidden_state
.
mean
().
item
())
self
.
assert
Almost
Equal
(
MEAN_VALUE_LAST_LM
,
logits
.
last_hidden_state
.
mean
().
item
()
,
places
=
4
)
else
:
else
:
self
.
assertAlmostEqual
(
MEAN_VALUE_LAST_LM
,
logits
.
last_hidden_state
.
mean
().
item
(),
places
=
3
)
self
.
assertAlmostEqual
(
MEAN_VALUE_LAST_LM
,
logits
.
last_hidden_state
.
mean
().
item
(),
places
=
3
)
...
...
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