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
OpenDAS
Torchaudio
Commits
3f0febc4
"vscode:/vscode.git/clone" did not exist on "3d98ee53af8e27f8c4691825369d3034023963eb"
Unverified
Commit
3f0febc4
authored
Jun 18, 2021
by
moto
Committed by
GitHub
Jun 18, 2021
Browse files
Fix HF wav2vec2 test (#1585)
parent
7deea259
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/torchaudio_unittest/models/wav2vec2/huggingface_intergration_test.py
...unittest/models/wav2vec2/huggingface_intergration_test.py
+1
-1
No files found.
test/torchaudio_unittest/models/wav2vec2/huggingface_intergration_test.py
View file @
3f0febc4
...
@@ -86,7 +86,7 @@ class TestHFIntegration(TorchaudioTestCase):
...
@@ -86,7 +86,7 @@ class TestHFIntegration(TorchaudioTestCase):
self
.
assertEqual
(
ref
,
hyp
)
self
.
assertEqual
(
ref
,
hyp
)
# Feature projection
# Feature projection
x
=
torch
.
randn
(
3
,
10
,
config
[
'conv_dim'
][
-
1
])
x
=
torch
.
randn
(
3
,
10
,
config
[
'conv_dim'
][
-
1
])
ref
=
original
.
wav2vec2
.
feature_projection
(
x
)
ref
=
original
.
wav2vec2
.
feature_projection
(
x
)
[
0
]
hyp
=
imported
.
encoder
.
feature_projection
(
x
)
hyp
=
imported
.
encoder
.
feature_projection
(
x
)
self
.
assertEqual
(
ref
,
hyp
)
self
.
assertEqual
(
ref
,
hyp
)
# Convolutional Positional Encoder
# Convolutional Positional Encoder
...
...
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