diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-12-24 11:05:11 +0000 |
---|---|---|
committer | Liam Barry <liam.barry@arm.com> | 2021-12-24 14:20:36 +0000 |
commit | 76a1580861210e0310db23acbc29e1064ae30ead (patch) | |
tree | f947145cffd944aa3724c90745fc0e9d8e2fb2f4 /source/use_case/asr/src/AsrClassifier.cc | |
parent | 871fcdc755173b9f7ecb8cf9dc8dc6306329958c (diff) | |
download | ml-embedded-evaluation-kit-76a1580861210e0310db23acbc29e1064ae30ead.tar.gz |
MLECO-2599: Replace DSCNN with MicroNet for KWS
Added SoftMax function to Mathutils to allow MicroNet
to output probability as it does not nativelu have this layer.
Minor refactoring to accommodate Softmax Calculations
Extensive renaming and updating of documentation and resource download script.
Added SoftMax function to Mathutils to allow MicroNet
to output probability.
Change-Id: I7cbbda1024d14b85c9ac1beea7ca8fbffd0b6eb5
Signed-off-by: Liam Barry <liam.barry@arm.com>
Diffstat (limited to 'source/use_case/asr/src/AsrClassifier.cc')
-rw-r--r-- | source/use_case/asr/src/AsrClassifier.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/use_case/asr/src/AsrClassifier.cc b/source/use_case/asr/src/AsrClassifier.cc index c18bd88..a715068 100644 --- a/source/use_case/asr/src/AsrClassifier.cc +++ b/source/use_case/asr/src/AsrClassifier.cc @@ -73,8 +73,9 @@ template bool arm::app::AsrClassifier::GetTopResults<int8_t>(TfLiteTensor* tenso bool arm::app::AsrClassifier::GetClassificationResults( TfLiteTensor* outputTensor, std::vector<ClassificationResult>& vecResults, - const std::vector <std::string>& labels, uint32_t topNCount) + const std::vector <std::string>& labels, uint32_t topNCount, bool use_softmax) { + UNUSED(use_softmax); vecResults.clear(); constexpr int minTensorDims = static_cast<int>( |