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
761b3fad
Unverified
Commit
761b3fad
authored
Nov 30, 2022
by
Arthur
Committed by
GitHub
Nov 30, 2022
Browse files
Expected output for the test changed (#20493)
parent
a4beb37b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tests/models/whisper/test_modeling_tf_whisper.py
tests/models/whisper/test_modeling_tf_whisper.py
+1
-1
tests/models/whisper/test_modeling_whisper.py
tests/models/whisper/test_modeling_whisper.py
+1
-1
No files found.
tests/models/whisper/test_modeling_tf_whisper.py
View file @
761b3fad
...
...
@@ -743,7 +743,7 @@ def _test_large_generation_multilingual(in_queue, out_queue, timeout):
)
transcript
=
processor
.
batch_decode
(
generated_ids
,
skip_special_tokens
=
True
)[
0
]
EXPECTED_TRANSCRIPT
=
" Kimura
san
ni denwa wo kaite moraimashita
"
EXPECTED_TRANSCRIPT
=
" Kimura
-
san
called me.
"
unittest
.
TestCase
().
assertEqual
(
transcript
,
EXPECTED_TRANSCRIPT
)
model
.
config
.
forced_decoder_ids
=
processor
.
get_decoder_prompt_ids
(
language
=
"ja"
,
task
=
"translate"
)
...
...
tests/models/whisper/test_modeling_whisper.py
View file @
761b3fad
...
...
@@ -983,7 +983,7 @@ class WhisperModelIntegrationTests(unittest.TestCase):
)
transcript
=
processor
.
batch_decode
(
generated_ids
,
skip_special_tokens
=
True
)[
0
]
EXPECTED_TRANSCRIPT
=
" Kimura
san
ni denwa wo kaite moraimashita
"
EXPECTED_TRANSCRIPT
=
" Kimura
-
san
called me.
"
self
.
assertEqual
(
transcript
,
EXPECTED_TRANSCRIPT
)
model
.
config
.
forced_decoder_ids
=
processor
.
get_decoder_prompt_ids
(
language
=
"ja"
,
task
=
"translate"
)
...
...
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