sew icon indicating copy to clipboard operation
sew copied to clipboard

:bug: Fix padding mask calculation

Open anton-l opened this issue 3 years ago • 0 comments

This PR updates the padding mask calculation to be the same as the one in the reference Wav2Vec2 implementation (same commit as listed in SEW's README): https://github.com/pytorch/fairseq/blob/05255f96410e5b1eaf3bf59b767d5b4b7e2c3a35/fairseq/models/wav2vec/wav2vec2.py#L477

For more details on how and why it was fixed in fairseq, check out this PR by @patrickvonplaten https://github.com/pytorch/fairseq/pull/3228

anton-l avatar Oct 13 '21 19:10 anton-l