Skip to content

Commit

Permalink
[Fix] type promotion (#3817)
Browse files Browse the repository at this point in the history
  • Loading branch information
megemini authored Oct 30, 2024
1 parent 658d19a commit 6316514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlespeech/audio/utils/tensor_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def st_reverse_pad_list(ys_pad: paddle.Tensor,
# >>> tensor([[ 2, 1, 0],
# >>> [ 2, 1, 0],
# >>> [ 0, -1, -2]])
index = index * seq_mask
index = index * seq_mask.astype(index.dtype)

# >>> index
# >>> tensor([[2, 1, 0],
Expand Down

0 comments on commit 6316514

Please sign in to comment.