hnluo
2023-05-31 51e80c166731cf0b06f56fb9a4cb8d07699ef208
Update wav_frontend.py

update wav_frontend online
1个文件已修改
2 ■■■ 已修改文件
funasr/models/frontend/wav_frontend.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/models/frontend/wav_frontend.py
@@ -395,7 +395,7 @@
        return feats_pad, feats_lens, lfr_splice_frame_idxs
    def forward(
        self, input: torch.Tensor, input_lengths: torch.Tensor, is_final: bool = False, reset: bool = True
        self, input: torch.Tensor, input_lengths: torch.Tensor, is_final: bool = False, reset: bool = False
    ) -> Tuple[torch.Tensor, torch.Tensor]:
        if reset:
            self.cache_reset()