From c8465832cdc8eeb4a22c72af85c71f2d3b7c0e47 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期四, 10 八月 2023 15:03:16 +0800
Subject: [PATCH] for cpp ws srv long wav core dump (#829)

---
 funasr/modules/data2vec/data_utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/funasr/modules/data2vec/data_utils.py b/funasr/modules/data2vec/data_utils.py
index efb72fa..abd6d51 100644
--- a/funasr/modules/data2vec/data_utils.py
+++ b/funasr/modules/data2vec/data_utils.py
@@ -105,7 +105,7 @@
             for length in sorted(lengths, reverse=True):
                 lens = np.fromiter(
                     (e - s if e - s >= length + min_space else 0 for s, e in parts),
-                    np.int,
+                    np.int32,
                 )
                 l_sum = np.sum(lens)
                 if l_sum == 0:

--
Gitblit v1.9.1