MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / Features

Method Features

Lib/Model/Features.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "Features.h"
6
7Features::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
19const float* Features::computeFeatures(float* inAudio, size_t inNumSamples, size_t& outNumFrames)
20{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected