Skip to content

Commit

Permalink
Update asr_inference_streaming.py
Browse files Browse the repository at this point in the history
Fix dtype CI error
  • Loading branch information
espnetUser authored May 10, 2022
1 parent 272d5d0 commit ee57ff9
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 @@ -215,7 +215,7 @@ def apply_frontend(
has_enough_samples = False if speech.size(0) <= self.win_length else True
if not has_enough_samples:
if is_final:
pad = torch.zeros(self.win_length - speech.size(0))
pad = torch.zeros(self.win_length - speech.size(0), dtype=getattr(torch, self.dtype))
speech = torch.cat([speech, pad], dim=0)
else:
feats = None
Expand Down

0 comments on commit ee57ff9

Please sign in to comment.