Skip to content

Commit

Permalink
Fix _get_strided_batch device
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiteng committed Mar 11, 2024
1 parent 0673925 commit 50fd411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lhotse/features/kaldi/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def _get_strided_batch(
if npad_right >= 0:
pad_right = torch.flip(waveform[:, -npad_right:], (1,))
else:
pad_right = torch.zeros(0, dtype=waveform.dtype)
pad_right = torch.zeros(0, dtype=waveform.dtype, device=waveform.device)
waveform = torch.cat((pad_left, waveform, pad_right), dim=1)

strides = (
Expand Down

0 comments on commit 50fd411

Please sign in to comment.