[Fix] type promotion (#3817)

pull/3869/head
megemini 10 months ago committed by GitHub
parent 658d19a73e
commit 6316514329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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],

Loading…
Cancel
Save