Skip to content

Commit

Permalink
black formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr committed Sep 8, 2024
1 parent d45b400 commit c43977e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions egs/libritts/ASR/zipformer/ctc_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
1 change: 1 addition & 0 deletions egs/libritts/ASR/zipformer/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
1 change: 1 addition & 0 deletions egs/libritts/ASR/zipformer/onnx_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
7 changes: 2 additions & 5 deletions egs/libritts/ASR/zipformer/streaming_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions egs/libritts/ASR/zipformer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit c43977e

Please sign in to comment.