[Test] Fix W2V-Conformer integration test (#17303)

* [Test] Fix W2V-Conformer integration test

* correct w2v2

* up
This commit is contained in:
Patrick von Platen
2022-05-17 18:20:36 +02:00
committed by GitHub
parent 28a0811652
commit 10704e1209
3 changed files with 7 additions and 9 deletions

View File

@@ -581,6 +581,10 @@ class Wav2Vec2ConformerModelTest(ModelTesterMixin, unittest.TestCase):
module.weight_v.data.fill_(3)
if hasattr(module, "bias") and module.bias is not None:
module.bias.data.fill_(3)
if hasattr(module, "pos_bias_u") and module.pos_bias_u is not None:
module.pos_bias_u.data.fill_(3)
if hasattr(module, "pos_bias_v") and module.pos_bias_v is not None:
module.pos_bias_v.data.fill_(3)
if hasattr(module, "codevectors") and module.codevectors is not None:
module.codevectors.data.fill_(3)
if hasattr(module, "masked_spec_embed") and module.masked_spec_embed is not None: