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/kws_asr/include/AsrClassifier.hpp | |
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/kws_asr/include/AsrClassifier.hpp')
-rw-r--r-- | source/use_case/kws_asr/include/AsrClassifier.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/use_case/kws_asr/include/AsrClassifier.hpp b/source/use_case/kws_asr/include/AsrClassifier.hpp index 7dbb6e9..6ab9685 100644 --- a/source/use_case/kws_asr/include/AsrClassifier.hpp +++ b/source/use_case/kws_asr/include/AsrClassifier.hpp @@ -32,12 +32,14 @@ namespace app { * populated by this function. * @param[in] labels Labels vector to match classified classes * @param[in] topNCount Number of top classifications to pick. + * @param[in] use_softmax Whether softmax scaling should be applied to model output. * @return true if successful, false otherwise. **/ bool GetClassificationResults( TfLiteTensor* outputTensor, std::vector<ClassificationResult>& vecResults, - const std::vector <std::string>& labels, uint32_t topNCount) override; + const std::vector <std::string>& labels, uint32_t topNCount, + bool use_softmax = false) override; private: |