summaryrefslogtreecommitdiff
path: root/source/use_case/vww/src/MainLoop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'source/use_case/vww/src/MainLoop.cc')
-rw-r--r--source/use_case/vww/src/MainLoop.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/source/use_case/vww/src/MainLoop.cc b/source/use_case/vww/src/MainLoop.cc
index fae7530..4fb5df7 100644
--- a/source/use_case/vww/src/MainLoop.cc
+++ b/source/use_case/vww/src/MainLoop.cc
@@ -25,14 +25,15 @@
#include "BufAttributes.hpp" /* Buffer attributes to be applied */
namespace arm {
- namespace app {
- static uint8_t tensorArena[ACTIVATION_BUF_SZ] ACTIVATION_BUF_ATTRIBUTE;
- } /* namespace app */
+namespace app {
+ static uint8_t tensorArena[ACTIVATION_BUF_SZ] ACTIVATION_BUF_ATTRIBUTE;
+ namespace vww {
+ extern uint8_t* GetModelPointer();
+ extern size_t GetModelLen();
+ } /* namespace vww */
+} /* namespace app */
} /* namespace arm */
-extern uint8_t* GetModelPointer();
-extern size_t GetModelLen();
-
using ViusalWakeWordClassifier = arm::app::Classifier;
void main_loop()
@@ -42,8 +43,8 @@ void main_loop()
/* Load the model. */
if (!model.Init(arm::app::tensorArena,
sizeof(arm::app::tensorArena),
- GetModelPointer(),
- GetModelLen())) {
+ arm::app::vww::GetModelPointer(),
+ arm::app::vww::GetModelLen())) {
printf_err("Failed to initialise model\n");
return;
}