summaryrefslogtreecommitdiff
path: root/source/use_case/asr/include/Wav2LetterPostprocess.hpp
diff options
context:
space:
mode:
authoralexander <alexander.efremov@arm.com>2021-04-29 20:36:09 +0100
committerAlexander Efremov <alexander.efremov@arm.com>2021-05-04 19:57:44 +0000
commitc350cdced0a8a2ca17376f58813e6d48d796ac7c (patch)
treef732cde664837a7cb9429b17e1366bb31a635b15 /source/use_case/asr/include/Wav2LetterPostprocess.hpp
parent6448932cc1c612d78e62c778ebb228b3cbe96a58 (diff)
downloadml-embedded-evaluation-kit-c350cdced0a8a2ca17376f58813e6d48d796ac7c.tar.gz
MLECO-1868: Code static analyzer warnings fixes
Signed-off-by: alexander <alexander.efremov@arm.com> Change-Id: Ie423e9cad3fabec6ab077ded7236813fe4933dea
Diffstat (limited to 'source/use_case/asr/include/Wav2LetterPostprocess.hpp')
-rw-r--r--source/use_case/asr/include/Wav2LetterPostprocess.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/use_case/asr/include/Wav2LetterPostprocess.hpp b/source/use_case/asr/include/Wav2LetterPostprocess.hpp
index 69567a3..e16d35b 100644
--- a/source/use_case/asr/include/Wav2LetterPostprocess.hpp
+++ b/source/use_case/asr/include/Wav2LetterPostprocess.hpp
@@ -72,33 +72,33 @@ namespace asr {
* initialised.
* @return true if valid, false otherwise.
*/
- bool _IsInputValid(TfLiteTensor* tensor,
- uint32_t axisIdx) const;
+ bool IsInputValid(TfLiteTensor* tensor,
+ const uint32_t axisIdx) const;
/**
* @brief Gets the tensor data element size in bytes based
* on the tensor type.
* @return Size in bytes, 0 if not supported.
*/
- uint32_t _GetTensorElementSize(TfLiteTensor* tensor);
+ static uint32_t GetTensorElementSize(TfLiteTensor* tensor);
/**
* @brief Erases sections from the data assuming row-wise
* arrangement along the context axis.
* @return true if successful, false otherwise.
*/
- bool _EraseSectionsRowWise(uint8_t* ptrData,
- uint32_t strideSzBytes,
- bool lastIteration);
+ bool EraseSectionsRowWise(uint8_t* ptrData,
+ const uint32_t strideSzBytes,
+ const bool lastIteration);
/**
* @brief Erases sections from the data assuming col-wise
* arrangement along the context axis.
* @return true if successful, false otherwise.
*/
- bool _EraseSectionsColWise(uint8_t* ptrData,
- uint32_t strideSzBytes,
- bool lastIteration);
+ static bool EraseSectionsColWise(const uint8_t* ptrData,
+ const uint32_t strideSzBytes,
+ const bool lastIteration);
};
} /* namespace asr */