| 5 | #include "Features.h" |
| 6 | |
| 7 | Features::Features() |
| 8 | : mMemoryInfo(nullptr) |
| 9 | , mSession(nullptr) |
| 10 | { |
| 11 | mMemoryInfo = Ort::MemoryInfo::CreateCpu(OrtDeviceAllocator, OrtMemTypeCPU); |
| 12 | |
| 13 | mSessionOptions.SetInterOpNumThreads(1); |
| 14 | mSessionOptions.SetIntraOpNumThreads(1); |
| 15 | |
| 16 | mSession = Ort::Session(mEnv, BinaryData::features_model_ort, BinaryData::features_model_ortSize, mSessionOptions); |
| 17 | } |
| 18 | |
| 19 | const float* Features::computeFeatures(float* inAudio, size_t inNumSamples, size_t& outNumFrames) |
| 20 | { |
nothing calls this directly
no outgoing calls
no test coverage detected