From 4200126f9b1bddf87105a5796b50ca11308e0309 Mon Sep 17 00:00:00 2001 From: jinzr <60612200+JinZr@users.noreply.github.com> Date: Mon, 14 Aug 2023 13:54:19 +0800 Subject: [PATCH] fixed several formatting issues --- egs/aidatatang_200zh/ASR/zipformer/streaming_decode.py | 6 +----- egs/aishell/ASR/zipformer/streaming_decode.py | 6 +----- egs/aishell2/ASR/zipformer/streaming_decode.py | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/egs/aidatatang_200zh/ASR/zipformer/streaming_decode.py b/egs/aidatatang_200zh/ASR/zipformer/streaming_decode.py index f95f02cad..23c11d9b9 100755 --- a/egs/aidatatang_200zh/ASR/zipformer/streaming_decode.py +++ b/egs/aidatatang_200zh/ASR/zipformer/streaming_decode.py @@ -386,11 +386,7 @@ def streaming_forward( Returns encoder outputs, output lengths, and updated states. """ cached_embed_left_pad = states[-2] - ( - x, - x_lens, - new_cached_embed_left_pad, - ) = model.encoder_embed.streaming_forward( + (x, x_lens, new_cached_embed_left_pad,) = model.encoder_embed.streaming_forward( x=features, x_lens=feature_lens, cached_left_pad=cached_embed_left_pad, diff --git a/egs/aishell/ASR/zipformer/streaming_decode.py b/egs/aishell/ASR/zipformer/streaming_decode.py index 386e0d920..c3820447a 100755 --- a/egs/aishell/ASR/zipformer/streaming_decode.py +++ b/egs/aishell/ASR/zipformer/streaming_decode.py @@ -386,11 +386,7 @@ def streaming_forward( Returns encoder outputs, output lengths, and updated states. """ cached_embed_left_pad = states[-2] - ( - x, - x_lens, - new_cached_embed_left_pad, - ) = model.encoder_embed.streaming_forward( + (x, x_lens, new_cached_embed_left_pad,) = model.encoder_embed.streaming_forward( x=features, x_lens=feature_lens, cached_left_pad=cached_embed_left_pad, diff --git a/egs/aishell2/ASR/zipformer/streaming_decode.py b/egs/aishell2/ASR/zipformer/streaming_decode.py index dfb0123a5..1b43a9366 100755 --- a/egs/aishell2/ASR/zipformer/streaming_decode.py +++ b/egs/aishell2/ASR/zipformer/streaming_decode.py @@ -386,11 +386,7 @@ def streaming_forward( Returns encoder outputs, output lengths, and updated states. """ cached_embed_left_pad = states[-2] - ( - x, - x_lens, - new_cached_embed_left_pad, - ) = model.encoder_embed.streaming_forward( + (x, x_lens, new_cached_embed_left_pad,) = model.encoder_embed.streaming_forward( x=features, x_lens=feature_lens, cached_left_pad=cached_embed_left_pad,