Skip to content

Commit

Permalink
update StackNFramesSubsampling (wenet-e2e#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-gaopeng authored Jun 4, 2024
1 parent f28c86f commit fcb4b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wenet/transformer/subsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,6 @@ def forward(
new_mask = ~make_pad_mask(seq_len, max_len=s // self.stride)
x = x.view(b, s // self.stride, self.idim * self.stride)
_, pos_emb = self.pos_enc_class(x, offset)
x = self.norm(x)
x = self.out(x)
x = self.norm(x)
x = self.out(x)
return x, pos_emb, new_mask.unsqueeze(1)

0 comments on commit fcb4b98

Please sign in to comment.