Skip to content

Commit

Permalink
Update asr_inference_streaming.py
Browse files Browse the repository at this point in the history
Fix CI error on mismatch in Tensor dtypes
  • Loading branch information
espnetUser authored May 11, 2022
1 parent 7a590cc commit 87c7573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espnet2/bin/asr_inference_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def apply_frontend(
if not has_enough_samples:
if is_final:
pad = torch.zeros(
self.win_length - speech.size(0), dtype=getattr(torch, self.dtype)
self.win_length - speech.size(0), dtype=speech.dtype
)
speech = torch.cat([speech, pad], dim=0)
else:
Expand Down

0 comments on commit 87c7573

Please sign in to comment.