Skip to content

Commit

Permalink
Applied black formating to test_asr_inference.py for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
espnetUser committed May 11, 2022
1 parent ee57ff9 commit 7a590cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion espnet2/bin/asr_inference_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ 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), dtype=getattr(torch, self.dtype))
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 7a590cc

Please sign in to comment.