From 716e3fe5122bc96bdc40fde71a50e4dc7f49b759 Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期五, 21 四月 2023 17:12:10 +0800
Subject: [PATCH] rename executable file;rm some unnecessary deps

---
 funasr/runtime/onnxruntime/src/funasr-onnx-offline.cpp |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/funasr/runtime/onnxruntime/tester/tester.cpp b/funasr/runtime/onnxruntime/src/funasr-onnx-offline.cpp
similarity index 95%
rename from funasr/runtime/onnxruntime/tester/tester.cpp
rename to funasr/runtime/onnxruntime/src/funasr-onnx-offline.cpp
index 4cb38df..fae739b 100644
--- a/funasr/runtime/onnxruntime/tester/tester.cpp
+++ b/funasr/runtime/onnxruntime/src/funasr-onnx-offline.cpp
@@ -6,9 +6,6 @@
 #endif
 
 #include "libfunasrapi.h"
-
-#include <iostream>
-#include <fstream>
 #include <sstream>
 using namespace std;
 
@@ -41,12 +38,10 @@
     printf("Model initialization takes %lfs.\n", (double)modle_init_micros / 1000000);
 
     gettimeofday(&start, NULL);
-    float snippet_time = 0.0f;
-
     FUNASR_RESULT Result=FunASRRecogFile(AsrHanlde, argv[2], RASR_NONE, NULL, use_vad);
-
     gettimeofday(&end, NULL);
-   
+
+    float snippet_time = 0.0f;
     if (Result)
     {
         string msg = FunASRGetResult(Result, 0);
@@ -57,7 +52,7 @@
     }
     else
     {
-        cout <<"no return data!";
+        printf("no return data!");
     }
  
     printf("Audio length %lfs.\n", (double)snippet_time);

--
Gitblit v1.9.1