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
768aa3d9
Unverified
Commit
768aa3d9
authored
Oct 03, 2023
by
Sanchit Gandhi
Committed by
GitHub
Oct 03, 2023
Browse files
[Wav2Vec2 and Co] Update init tests for PT 2.1 (#26494)
parent
b5ca8fcd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
0 deletions
+7
-0
tests/models/hubert/test_modeling_hubert.py
tests/models/hubert/test_modeling_hubert.py
+2
-0
tests/models/unispeech/test_modeling_unispeech.py
tests/models/unispeech/test_modeling_unispeech.py
+1
-0
tests/models/unispeech_sat/test_modeling_unispeech_sat.py
tests/models/unispeech_sat/test_modeling_unispeech_sat.py
+2
-0
tests/models/wav2vec2/test_modeling_wav2vec2.py
tests/models/wav2vec2/test_modeling_wav2vec2.py
+1
-0
tests/models/wavlm/test_modeling_wavlm.py
tests/models/wavlm/test_modeling_wavlm.py
+1
-0
No files found.
tests/models/hubert/test_modeling_hubert.py
View file @
768aa3d9
...
...
@@ -419,6 +419,7 @@ class HubertModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"quantizer.weight_proj.weight"
,
]
...
...
@@ -680,6 +681,7 @@ class HubertRobustModelTest(ModelTesterMixin, unittest.TestCase):
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"quantizer.weight_proj.weight"
,
]
...
...
tests/models/unispeech/test_modeling_unispeech.py
View file @
768aa3d9
...
...
@@ -421,6 +421,7 @@ class UniSpeechRobustModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.T
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"codevectors"
,
"quantizer.weight_proj.weight"
,
...
...
tests/models/unispeech_sat/test_modeling_unispeech_sat.py
View file @
768aa3d9
...
...
@@ -471,6 +471,7 @@ class UniSpeechSatModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.Test
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"codevectors"
,
"quantizer.weight_proj.weight"
,
...
...
@@ -682,6 +683,7 @@ class UniSpeechSatRobustModelTest(ModelTesterMixin, unittest.TestCase):
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"codevectors"
,
"quantizer.weight_proj.weight"
,
...
...
tests/models/wav2vec2/test_modeling_wav2vec2.py
View file @
768aa3d9
...
...
@@ -625,6 +625,7 @@ class Wav2Vec2ModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"codevectors"
,
"quantizer.weight_proj.weight"
,
...
...
tests/models/wavlm/test_modeling_wavlm.py
View file @
768aa3d9
...
...
@@ -424,6 +424,7 @@ class WavLMModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
for
name
,
param
in
model
.
named_parameters
():
uniform_init_parms
=
[
"conv.weight"
,
"conv.parametrizations.weight"
,
"masked_spec_embed"
,
"codevectors"
,
"quantizer.weight_proj.weight"
,
...
...
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