aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Runtime.cpp
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2023-08-01 14:57:25 +0100
committerColm Donelan <colm.donelan@arm.com>2023-08-02 10:56:32 +0100
commit2812484ffa1d0ef8f9456d297d05202bea3dac38 (patch)
treeb46766e6259e9eae1b0dadba599206d02e7158e2 /src/armnn/Runtime.cpp
parentfb2b416a6451f2f78314fe71396297cd0c02ed47 (diff)
downloadarmnn-2812484ffa1d0ef8f9456d297d05202bea3dac38.tar.gz
Fixing ambiguous method name in BackendHelper.
!android-nn-driver:10035 * Two of the 4 HasCapability methods in BackendHelper were checking the value of the capability not just the existence of the capability. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I63bc1671dfb088a947de70a21c86d2502f92f008
Diffstat (limited to 'src/armnn/Runtime.cpp')
-rw-r--r--src/armnn/Runtime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp
index f71fad1f35..b0fc55010d 100644
--- a/src/armnn/Runtime.cpp
+++ b/src/armnn/Runtime.cpp
@@ -371,7 +371,7 @@ RuntimeImpl::RuntimeImpl(const IRuntime::CreationOptions& options)
// check if backend supports ProtectedMode
using BackendCapability = BackendOptions::BackendOption;
BackendCapability protectedContentCapability {"ProtectedContentAllocation", true};
- if (!HasCapability(protectedContentCapability, id))
+ if (!HasMatchingCapability(protectedContentCapability, id))
{
// Protected Content Allocation is not supported by the backend
// backend should not be registered
@@ -480,7 +480,7 @@ RuntimeImpl::RuntimeImpl(const IRuntime::CreationOptions& options)
using BackendCapability = BackendOptions::BackendOption;
auto strategyType = GetMemBlockStrategyTypeName(strategy->GetMemBlockStrategyType());
BackendCapability memOptimizeStrategyCapability {strategyType, true};
- if (HasCapability(memOptimizeStrategyCapability, id))
+ if (HasMatchingCapability(memOptimizeStrategyCapability, id))
{
BackendRegistryInstance().RegisterMemoryOptimizerStrategy(id, strategy);