diff options
Diffstat (limited to 'tests/use_case/asr')
-rw-r--r-- | tests/use_case/asr/AsrClassifierTests.cc | 4 | ||||
-rw-r--r-- | tests/use_case/asr/InferenceTestWav2Letter.cc | 5 | ||||
-rw-r--r-- | tests/use_case/asr/Wav2LetterPreprocessingTest.cc | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/tests/use_case/asr/AsrClassifierTests.cc b/tests/use_case/asr/AsrClassifierTests.cc index 12523aa..e2bfb18 100644 --- a/tests/use_case/asr/AsrClassifierTests.cc +++ b/tests/use_case/asr/AsrClassifierTests.cc @@ -30,7 +30,7 @@ TEST_CASE("Test invalid classifier") TEST_CASE("Test valid classifier UINT8") { - const int dimArray[] = {4, 1, 1, 246, 29}; + int dimArray[] = {4, 1, 1, 246, 29}; std::vector <std::string> labels(29); std::vector <uint8_t> outputVec(7134); TfLiteIntArray* dims= tflite::testing::IntArrayFromInts(dimArray); @@ -46,7 +46,7 @@ TEST_CASE("Test valid classifier UINT8") { TEST_CASE("Get classification results") { - const int dimArray[] = {4, 1, 1, 10, 15}; + int dimArray[] = {4, 1, 1, 10, 15}; std::vector <std::string> labels(15); std::vector<uint8_t> outputVec(150, static_cast<uint8_t>(1)); TfLiteIntArray* dims= tflite::testing::IntArrayFromInts(dimArray); diff --git a/tests/use_case/asr/InferenceTestWav2Letter.cc b/tests/use_case/asr/InferenceTestWav2Letter.cc index 0943db8..d5e6c35 100644 --- a/tests/use_case/asr/InferenceTestWav2Letter.cc +++ b/tests/use_case/asr/InferenceTestWav2Letter.cc @@ -54,8 +54,7 @@ bool RunInferenceRandom(arm::app::Model& model) return true; } -/* Skip this test, Wav2LetterModel if not Vela optimized but only from ML-zoo will fail. */ -TEST_CASE("Running random inference with TensorFlow Lite Micro and Wav2LetterModel Int8", "[Wav2Letter][.]") +TEST_CASE("Running random inference with TensorFlow Lite Micro and Wav2LetterModel Int8", "[Wav2Letter]") { arm::app::Wav2LetterModel model{}; @@ -86,7 +85,7 @@ void TestInference(const T* input_goldenFV, const T* output_goldenFV, arm::app:: } } -TEST_CASE("Running inference with Tflu and Wav2LetterModel Int8", "[Wav2Letter][.]") +TEST_CASE("Running inference with Tflu and Wav2LetterModel Int8", "[Wav2Letter]") { for (uint32_t i = 0 ; i < NUMBER_OF_FM_FILES; ++i) { auto input_goldenFV = get_ifm_data_array(i);; diff --git a/tests/use_case/asr/Wav2LetterPreprocessingTest.cc b/tests/use_case/asr/Wav2LetterPreprocessingTest.cc index 1391011..8af9014 100644 --- a/tests/use_case/asr/Wav2LetterPreprocessingTest.cc +++ b/tests/use_case/asr/Wav2LetterPreprocessingTest.cc @@ -108,7 +108,7 @@ TEST_CASE("Preprocessing calculation INT8") /* Constants. */ const uint32_t windowLen = 512; const uint32_t windowStride = 160; - const int dimArray[] = {3, 1, numMfccFeatures * 3, numMfccVectors}; + int dimArray[] = {3, 1, numMfccFeatures * 3, numMfccVectors}; const float quantScale = 0.1410219967365265; const int quantOffset = -11; |