MCPcopy Create free account
hub / github.com/ARM-software/armnn / PostProcessing

Method PostProcessing

samples/KeywordSpotting/src/KeywordSpottingPipeline.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void KWSPipeline::PostProcessing(common::InferenceResults<int8_t>& inferenceResults,
34 std::map<int, std::string>& labels,
35 const std::function<void (int, std::string&, float)>& callback)
36{
37 std::pair<int,float> outputDecoder = this->m_decoder->decodeOutput(inferenceResults[0]);
38 int keywordIndex = std::get<0>(outputDecoder);
39 std::string output = labels[keywordIndex];
40 callback(keywordIndex, output, std::get<1>(outputDecoder));
41}
42
43int KWSPipeline::getInputSamplesSize()
44{

Callers 2

mainFunction · 0.45

Calls 1

decodeOutputMethod · 0.80

Tested by

no test coverage detected