black formatted

This commit is contained in:
JinZr 2024-09-08 11:23:27 +08:00
parent d45b400805
commit c43977ea05
5 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@
# Liyong Guo,
# Quandong Wang,
# Zengwei Yao)
# Copyright 2024 The Chinese Univ. of HK (Author: Zengrui Jin)
#
# See ../../../../LICENSE for clarification regarding multiple authors
#

View File

@ -2,6 +2,7 @@
#
# Copyright 2021-2023 Xiaomi Corporation (Author: Fangjun Kuang,
# Zengwei Yao)
# Copyright 2024 The Chinese Univ. of HK (Author: Zengrui Jin)
#
# See ../../../../LICENSE for clarification regarding multiple authors
#

View File

@ -3,6 +3,7 @@
# Copyright 2021-2023 Xiaomi Corporation (Author: Fangjun Kuang,
# Zengwei Yao,
# Xiaoyu Yang)
# Copyright 2024 The Chinese Univ. of HK (Author: Zengrui Jin)
#
# See ../../../../LICENSE for clarification regarding multiple authors
#

View File

@ -2,6 +2,7 @@
# Copyright 2022-2023 Xiaomi Corporation (Authors: Wei Kang,
# Fangjun Kuang,
# Zengwei Yao)
# Copyright 2024 The Chinese Univ. of HK (Author: Zengrui Jin)
#
# See ../../../../LICENSE for clarification regarding multiple authors
#
@ -388,11 +389,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,

View File

@ -4,6 +4,7 @@
# Mingshuang Luo,
# Zengwei Yao,
# Daniel Povey)
# Copyright 2024 The Chinese Univ. of HK (author: Zengrui Jin)
#
# See ../../../../LICENSE for clarification regarding multiple authors
#