From 72a88f22f00c4567503adf852dd2f3f2938ecf7c Mon Sep 17 00:00:00 2001
From: andyweiqiu <andywei_89@163.COM>
Date: 星期四, 07 九月 2023 15:18:56 +0800
Subject: [PATCH] Delete redundant parts from an iOS project (#922)
---
funasr/bin/diar_infer.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/bin/diar_infer.py b/funasr/bin/diar_infer.py
index 3efa641..6fc1da1 100755
--- a/funasr/bin/diar_infer.py
+++ b/funasr/bin/diar_infer.py
@@ -179,7 +179,7 @@
@staticmethod
def seq2arr(seq, vec_dim=8):
- def int2vec(x, vec_dim=8, dtype=np.int):
+ def int2vec(x, vec_dim=8, dtype=np.int32):
b = ('{:0' + str(vec_dim) + 'b}').format(x)
# little-endian order: lower bit first
return (np.array(list(b)[::-1]) == '1').astype(dtype)
--
Gitblit v1.9.1