From 11ae5744509286cf517758bf99ceda58c9ff2425 Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期四, 20 四月 2023 15:52:11 +0800
Subject: [PATCH] fix code style
---
funasr/runtime/onnxruntime/src/FsmnVad.cc | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/FsmnVad.cc b/funasr/runtime/onnxruntime/src/FsmnVad.cc
index 69c69ca..6de482e 100644
--- a/funasr/runtime/onnxruntime/src/FsmnVad.cc
+++ b/funasr/runtime/onnxruntime/src/FsmnVad.cc
@@ -1,6 +1,4 @@
-//
-// Created by root on 4/9/23.
-//
+
#include <fstream>
#include "FsmnVad.h"
#include "precomp.h"
@@ -9,8 +7,6 @@
void FsmnVad::init_vad(const std::string &vad_model, const std::string &vad_cmvn, int vad_sample_rate, int vad_silence_duration, int vad_max_len,
float vad_speech_noise_thres) {
-
-
session_options_.SetIntraOpNumThreads(1);
session_options_.SetGraphOptimizationLevel(ORT_ENABLE_ALL);
session_options_.DisableCpuMemArena();
@@ -33,7 +29,6 @@
}
-
void FsmnVad::read_model(const std::string &vad_model) {
try {
vad_session_ = std::make_shared<Ort::Session>(
@@ -45,8 +40,6 @@
//LOG(INFO) << "vad onnx:";
GetInputOutputInfo(vad_session_, &vad_in_names_, &vad_out_names_);
}
-
-
void FsmnVad::GetInputOutputInfo(
const std::shared_ptr<Ort::Session> &session,
--
Gitblit v1.9.1