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/paraformer_onnx.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/paraformer_onnx.cpp b/funasr/runtime/onnxruntime/src/paraformer_onnx.cpp
index 16cf57a..1e4a310 100644
--- a/funasr/runtime/onnxruntime/src/paraformer_onnx.cpp
+++ b/funasr/runtime/onnxruntime/src/paraformer_onnx.cpp
@@ -35,12 +35,12 @@
fbank_opts.frame_opts.frame_length_ms = 25;
fbank_opts.energy_floor = 0;
fbank_opts.mel_opts.debug_mel = false;
- //fbank_ = std::make_unique<knf::OnlineFbank>(fbank_opts);
+ // fbank_ = std::make_unique<knf::OnlineFbank>(fbank_opts);
- //sessionOptions.SetInterOpNumThreads(1);
- //sessionOptions.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_EXTENDED);
+ // sessionOptions.SetInterOpNumThreads(1);
sessionOptions.SetIntraOpNumThreads(nNumThread);
sessionOptions.SetGraphOptimizationLevel(ORT_ENABLE_ALL);
+ // DisableCpuMemArena can improve performance
sessionOptions.DisableCpuMemArena();
#ifdef _WIN32
--
Gitblit v1.9.1