From c880db53646ab9fd26417f4baf004ab44cc24e1a Mon Sep 17 00:00:00 2001
From: lingji-yidong <75744976+lingji-yidong@users.noreply.github.com>
Date: 星期五, 28 六月 2024 01:28:24 +0800
Subject: [PATCH] Fix: Return tuple ('', []) when char_list is empty to prevent ValueError (#1857)

---
 funasr/models/rwkv_bat/rwkv.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/funasr/models/rwkv_bat/rwkv.py b/funasr/models/rwkv_bat/rwkv.py
index bd218a2..c777cf2 100644
--- a/funasr/models/rwkv_bat/rwkv.py
+++ b/funasr/models/rwkv_bat/rwkv.py
@@ -76,6 +76,7 @@
         x = x + self.dropout_ffn(ffn)
         return x, state
 
+
 class RWKVDecoderLayer(torch.nn.Module):
     """RWKV module.
 

--
Gitblit v1.9.1