| | |
| | | #include <fstream> |
| | | #include "precomp.h" |
| | | |
| | | void FsmnVad::InitVad(const std::string &vad_model, const std::string &vad_cmvn, const std::string &vad_config) { |
| | | session_options_.SetIntraOpNumThreads(1); |
| | | void FsmnVad::InitVad(const std::string &vad_model, const std::string &vad_cmvn, const std::string &vad_config, int thread_num) { |
| | | session_options_.SetIntraOpNumThreads(thread_num); |
| | | session_options_.SetGraphOptimizationLevel(ORT_ENABLE_ALL); |
| | | session_options_.DisableCpuMemArena(); |
| | | |
| | |
| | | void FsmnVad::Test() { |
| | | } |
| | | |
| | | FsmnVad::~FsmnVad() { |
| | | } |
| | | |
| | | FsmnVad::FsmnVad():env_(ORT_LOGGING_LEVEL_ERROR, ""),session_options_{} { |
| | | } |