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, # Liyong Guo,
# Quandong Wang, # Quandong Wang,
# Zengwei Yao) # Zengwei Yao)
# Copyright 2024 The Chinese Univ. of HK (Author: Zengrui Jin)
# #
# See ../../../../LICENSE for clarification regarding multiple authors # See ../../../../LICENSE for clarification regarding multiple authors
# #

View File

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

View File

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

View File

@ -2,6 +2,7 @@
# Copyright 2022-2023 Xiaomi Corporation (Authors: Wei Kang, # Copyright 2022-2023 Xiaomi Corporation (Authors: Wei Kang,
# Fangjun Kuang, # Fangjun Kuang,
# Zengwei Yao) # Zengwei Yao)
# Copyright 2024 The Chinese Univ. of HK (Author: Zengrui Jin)
# #
# See ../../../../LICENSE for clarification regarding multiple authors # See ../../../../LICENSE for clarification regarding multiple authors
# #
@ -388,11 +389,7 @@ def streaming_forward(
Returns encoder outputs, output lengths, and updated states. Returns encoder outputs, output lengths, and updated states.
""" """
cached_embed_left_pad = states[-2] 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=features,
x_lens=feature_lens, x_lens=feature_lens,
cached_left_pad=cached_embed_left_pad, cached_left_pad=cached_embed_left_pad,

View File

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