From 52c238d02d50fcfb2c4e2a5058c743c7db913eec Mon Sep 17 00:00:00 2001 From: espnetUser <81252087+espnetUser@users.noreply.github.com> Date: Wed, 11 May 2022 16:10:04 +0200 Subject: [PATCH] Applied black formating to test_asr_inference.py for PR --- espnet2/bin/asr_inference_streaming.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/espnet2/bin/asr_inference_streaming.py b/espnet2/bin/asr_inference_streaming.py index 0f71f76e7bf..934c0bff276 100755 --- a/espnet2/bin/asr_inference_streaming.py +++ b/espnet2/bin/asr_inference_streaming.py @@ -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