From 8a8d60d5786510ec7b1dd4f622e848de8a15f8a8 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期一, 15 一月 2024 16:36:51 +0800
Subject: [PATCH] replace NULL for onnxruntime/src

---
 funasr/frontends/wav_frontend.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/funasr/frontends/wav_frontend.py b/funasr/frontends/wav_frontend.py
index f410085..9c896f1 100644
--- a/funasr/frontends/wav_frontend.py
+++ b/funasr/frontends/wav_frontend.py
@@ -402,8 +402,7 @@
         self, input: torch.Tensor, input_lengths: torch.Tensor, cache: dict = {}, **kwargs
     ):
         is_final = kwargs.get("is_final", False)
-        reset = kwargs.get("reset", False)
-        if len(cache) == 0 or reset:
+        if len(cache) == 0:
             self.init_cache(cache)
         
         batch_size = input.shape[0]

--
Gitblit v1.9.1