Skip to content

Commit

Permalink
[Wav2Vec2 and Co] Update init tests for PT 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchit-gandhi committed Sep 29, 2023
1 parent 211f93a commit d0dc5ac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/models/hubert/test_modeling_hubert.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"quantizer.weight_proj.weight",
]
Expand Down Expand Up @@ -680,6 +681,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"quantizer.weight_proj.weight",
]
Expand Down
1 change: 1 addition & 0 deletions tests/models/unispeech/test_modeling_unispeech.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"codevectors",
"quantizer.weight_proj.weight",
Expand Down
2 changes: 2 additions & 0 deletions tests/models/unispeech_sat/test_modeling_unispeech_sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"codevectors",
"quantizer.weight_proj.weight",
Expand Down Expand Up @@ -682,6 +683,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"codevectors",
"quantizer.weight_proj.weight",
Expand Down
1 change: 1 addition & 0 deletions tests/models/wav2vec2/test_modeling_wav2vec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"codevectors",
"quantizer.weight_proj.weight",
Expand Down
1 change: 1 addition & 0 deletions tests/models/wavlm/test_modeling_wavlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def test_initialization(self):
for name, param in model.named_parameters():
uniform_init_parms = [
"conv.weight",
"conv.parametrizations.weight",
"masked_spec_embed",
"codevectors",
"quantizer.weight_proj.weight",
Expand Down

0 comments on commit d0dc5ac

Please sign in to comment.