From 6e69d784e4814c3dbe35e8f70c6cf4b920c8b20b Mon Sep 17 00:00:00 2001
From: 天地 <tiandiweizun@gmail.com>
Date: 星期三, 19 三月 2025 23:10:13 +0800
Subject: [PATCH] 1. bug fix:list(mean)和list(var),由于mean和var是numpy,导致写入到文件的格式错误,参考上面的话,大概率是list(mean.tolist()),其实外层list没有必要 (#2437)

---
 runtime/onnxruntime/third_party/kaldi-native-fbank/cmake/cmake_extension.py |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/runtime/onnxruntime/third_party/kaldi-native-fbank/cmake/cmake_extension.py b/runtime/onnxruntime/third_party/kaldi-native-fbank/cmake/cmake_extension.py
index f3ca874..25e5209 100644
--- a/runtime/onnxruntime/third_party/kaldi-native-fbank/cmake/cmake_extension.py
+++ b/runtime/onnxruntime/third_party/kaldi-native-fbank/cmake/cmake_extension.py
@@ -39,7 +39,6 @@
                 # -linux_x86_64.whl
                 self.root_is_pure = False
 
-
 except ImportError:
     bdist_wheel = None
 
@@ -84,9 +83,7 @@
                 cmake --build {self.build_temp} --target install --config Release -- -m
             """
             print(f"build command is:\n{build_cmd}")
-            ret = os.system(
-                f"cmake {cmake_args} -B {self.build_temp} -S {kaldi_native_fbank_dir}"
-            )
+            ret = os.system(f"cmake {cmake_args} -B {self.build_temp} -S {kaldi_native_fbank_dir}")
             if ret != 0:
                 raise Exception("Failed to configure kaldi_native_fbank")
 
@@ -98,9 +95,7 @@
         else:
             if make_args == "" and system_make_args == "":
                 print("For fast compilation, run:")
-                print(
-                    'export KALDI_NATIVE_FBANK_MAKE_ARGS="-j"; python setup.py install'
-                )
+                print('export KALDI_NATIVE_FBANK_MAKE_ARGS="-j"; python setup.py install')
 
             build_cmd = f"""
                 cd {self.build_temp}

--
Gitblit v1.9.1