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
70f186f6
"docs/source/en/performance.md" did not exist on "7cb1fdd4d109165722858cd626abbfc8d5e2ebc4"
Unverified
Commit
70f186f6
authored
Oct 22, 2021
by
Patrick von Platen
Committed by
GitHub
Oct 22, 2021
Browse files
up (#14116)
parent
ca2ef7df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/test_modeling_hubert.py
tests/test_modeling_hubert.py
+3
-1
No files found.
tests/test_modeling_hubert.py
View file @
70f186f6
...
@@ -615,7 +615,9 @@ class HubertModelIntegrationTest(unittest.TestCase):
...
@@ -615,7 +615,9 @@ class HubertModelIntegrationTest(unittest.TestCase):
ds
=
load_dataset
(
"hf-internal-testing/librispeech_asr_dummy"
,
"clean"
,
split
=
"validation"
)
ds
=
load_dataset
(
"hf-internal-testing/librispeech_asr_dummy"
,
"clean"
,
split
=
"validation"
)
# automatic decoding with librispeech
# automatic decoding with librispeech
speech_samples
=
ds
.
sort
(
"id"
).
select
(
range
(
num_samples
))[:
num_samples
][
"audio"
]
speech_samples
=
ds
.
sort
(
"id"
).
filter
(
lambda
x
:
x
[
"id"
]
in
[
f
"1272-141231-000
{
i
}
"
for
i
in
range
(
num_samples
)]
)[:
num_samples
][
"audio"
]
return
[
x
[
"array"
]
for
x
in
speech_samples
]
return
[
x
[
"array"
]
for
x
in
speech_samples
]
...
...
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