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
b7e6d120
Unverified
Commit
b7e6d120
authored
Dec 05, 2023
by
Joao Gante
Committed by
GitHub
Dec 05, 2023
Browse files
Generate: Update VisionEncoderDecoder test value (#27850)
update test result, due to bug fix in decoder-only beam search
parent
fdb85be4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/vision_encoder_decoder/test_modeling_vision_encoder_decoder.py
...n_encoder_decoder/test_modeling_vision_encoder_decoder.py
+1
-1
No files found.
tests/models/vision_encoder_decoder/test_modeling_vision_encoder_decoder.py
View file @
b7e6d120
...
...
@@ -800,7 +800,7 @@ class ViT2GPT2ModelIntegrationTest(unittest.TestCase):
preds
,
scores
=
generate_step
(
pixel_values
)
EXPECTED_SCORES
=
np
.
array
([
-
0.
59562886
])
EXPECTED_SCORES
=
np
.
array
([
-
0.
64145195
])
max_diff
=
np
.
amax
(
np
.
abs
(
scores
-
EXPECTED_SCORES
))
self
.
assertLessEqual
(
max_diff
,
1e-4
)
...
...
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