* Silently considering the dynamic backend loading feature as
disabled if an empty list of paths is passed to ArmNN
* This was causing problems during testing as ArmNN's output
was containing extra unnecessary warning messages
Change-Id: I4ebda412004179817cd54494ccddc964b04b8232
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
std::vector<std::string> DynamicBackendUtils::GetBackendPathsImpl(const std::string& backendPaths)
{
+ // Check if there's any path to process at all
+ if (backendPaths.empty())
+ {
+ // Silently return without issuing a warning as no paths have been passed, so
+ // the whole dynamic backend loading feature can be considered as disabled
+ return {};
+ }
+
std::unordered_set<std::string> uniqueBackendPaths;
std::vector<std::string> tempBackendPaths;
std::vector<std::string> validBackendPaths;