diff options
author | Liam Barry <liam.barry@arm.com> | 2023-09-27 12:48:35 +0100 |
---|---|---|
committer | Nina Drozd <nina.drozd@arm.com> | 2023-10-04 09:35:11 +0100 |
commit | f30d7413b2ba6625dc0f86ca540694a2a349dd54 (patch) | |
tree | 4338d35657fb29093f51bc0c9ad7cc3ed7f68f3b /source | |
parent | 9263b519eef9aea86dcd795b16acd1ae53e19b9c (diff) | |
download | ml-embedded-evaluation-kit-f30d7413b2ba6625dc0f86ca540694a2a349dd54.tar.gz |
MLECO-4365: Add CI Test for insufficient tensor arena and update common tests.
Previously, execution path following failed tensor allocation
was not covered by tests.
Minor amendment added to make ~Model virtual.
During testing it was noticed that intentional errors simulated in
certain common tests would result in misleading output for subsequent tests
as the error messages appear in the console output of the next failing test.
Documentation and print statements added until a solution is found.
Change-Id: Iaf3e0f32ce9e0505921251cd41f73030108d2cb1
Signed-off-by: Liam Barry <liam.barry@arm.com>
Diffstat (limited to 'source')
-rw-r--r-- | source/application/api/common/include/Model.hpp | 2 | ||||
-rw-r--r-- | source/application/api/common/source/Model.cc | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/source/application/api/common/include/Model.hpp b/source/application/api/common/include/Model.hpp index 1728e1f..6eefd02 100644 --- a/source/application/api/common/include/Model.hpp +++ b/source/application/api/common/include/Model.hpp @@ -33,7 +33,7 @@ namespace app { Model(); /** @brief Destructor. */ - ~Model(); + virtual ~Model() = default; /** @brief Gets the pointer to the model's input tensor at given input index. */ TfLiteTensor* GetInputTensor(size_t index) const; diff --git a/source/application/api/common/source/Model.cc b/source/application/api/common/source/Model.cc index b344a53..3675c5b 100644 --- a/source/application/api/common/source/Model.cc +++ b/source/application/api/common/source/Model.cc @@ -20,8 +20,6 @@ #include <cinttypes> #include <memory> -arm::app::Model::~Model() = default; - arm::app::Model::Model() : m_inited(false), m_type(kTfLiteNoType) {} /* Initialise the model */ |