Skip to content

Commit

Permalink
fix triton onnx export (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuekaizhang committed Aug 23, 2024
1 parent 3fc06cc commit 3b434fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/librispeech/ASR/zipformer/export-onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def forward(
- encoder_out_lens, A 1-D tensor of shape (N,)
"""
x, x_lens = self.encoder_embed(x, x_lens)
src_key_padding_mask = make_pad_mask(x_lens)
src_key_padding_mask = make_pad_mask(x_lens, x.shape[1])
x = x.permute(1, 0, 2)
encoder_out, encoder_out_lens = self.encoder(x, x_lens, src_key_padding_mask)
encoder_out = encoder_out.permute(1, 0, 2)
Expand Down

0 comments on commit 3b434fe

Please sign in to comment.