| 31 | } |
| 32 | |
| 33 | void 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 | |
| 43 | int KWSPipeline::getInputSamplesSize() |
| 44 | { |
no test coverage detected