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 87c7573 commit 52c238d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions espnet2/bin/asr_inference_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +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), dtype=speech.dtype
)
pad = torch.zeros(self.win_length - speech.size(0), dtype=speech.dtype)
speech = torch.cat([speech, pad], dim=0)
else:
feats = None
Expand Down

0 comments on commit 52c238d

Please sign in to comment.