diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-05-11 12:22:08 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-05-11 17:47:02 +0100 |
commit | dd44d29775e53ad311e1997bb8a7670d0ee6383e (patch) | |
tree | 6c230b4769cc17c76bf365cbc052004d8e85cb69 /source/use_case/kws_asr | |
parent | 0bc74e9674eb161342fabd0ba83c4c87b45ecd84 (diff) | |
download | ml-embedded-evaluation-kit-dd44d29775e53ad311e1997bb8a7670d0ee6383e.tar.gz |
MLECO-3187: Remove NPU op inclusion checks
* If an optimized model is accidentally supplied with Ethos-U support
disabled it will return from the model.Init() function before it gets
to these checks so they are redundant.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: Ibe25531347ce29cb0866a9cc087c7267673ab4da
Diffstat (limited to 'source/use_case/kws_asr')
-rw-r--r-- | source/use_case/kws_asr/src/MainLoop.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/use_case/kws_asr/src/MainLoop.cc b/source/use_case/kws_asr/src/MainLoop.cc index 2365264..bba4480 100644 --- a/source/use_case/kws_asr/src/MainLoop.cc +++ b/source/use_case/kws_asr/src/MainLoop.cc @@ -85,14 +85,6 @@ void main_loop() return; } -#if !defined(ARM_NPU) - /* If it is not a NPU build check if the model contains a NPU operator */ - if (kwsModel.ContainsEthosUOperator()) { - printf_err("No driver support for Ethos-U operator found in the KWS model.\n"); - return; - } -#endif /* ARM_NPU */ - /* Initialise the asr model using the same allocator from KWS * to re-use the tensor arena. */ if (!asrModel.Init(arm::app::tensorArena, @@ -107,14 +99,6 @@ void main_loop() return; } -#if !defined(ARM_NPU) - /* If it is not a NPU build check if the model contains a NPU operator */ - if (asrModel.ContainsEthosUOperator()) { - printf_err("No driver support for Ethos-U operator found in the ASR model.\n"); - return; - } -#endif /* ARM_NPU */ - /* Instantiate application context. */ arm::app::ApplicationContext caseContext; |