diff options
author | Colm Donelan <colm.donelan@arm.com> | 2023-08-01 14:57:25 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2023-08-02 10:56:32 +0100 |
commit | 2812484ffa1d0ef8f9456d297d05202bea3dac38 (patch) | |
tree | b46766e6259e9eae1b0dadba599206d02e7158e2 /include | |
parent | fb2b416a6451f2f78314fe71396297cd0c02ed47 (diff) | |
download | armnn-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 'include')
-rw-r--r-- | include/armnn/BackendHelper.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/armnn/BackendHelper.hpp b/include/armnn/BackendHelper.hpp index b550f9f68e..59cbbfced3 100644 --- a/include/armnn/BackendHelper.hpp +++ b/include/armnn/BackendHelper.hpp @@ -466,11 +466,19 @@ bool HasCapability(const std::string& name,const BackendCapabilities& capabiliti bool HasCapability(const std::string& name, const armnn::BackendId& backend); /// Convenience function to check if a given capability matches a capability in a BackendCapabilities struct +ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use HasMatchingCapability instead.", "24.05") bool HasCapability(const BackendOptions::BackendOption& capability, const BackendCapabilities& capabilities); /// Convenience function to check if a given capability matches a capability in a backend +ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use HasMatchingCapability instead.", "24.05") bool HasCapability(const BackendOptions::BackendOption& backendOption, const armnn::BackendId& backend); +/// Convenience function to check if a given capability matches a capability in a BackendCapabilities struct +bool HasMatchingCapability(const BackendOptions::BackendOption& capability, const BackendCapabilities& capabilities); + +/// Convenience function to check if a given capability matches a capability in a backend +bool HasMatchingCapability(const BackendOptions::BackendOption& backendOption, const armnn::BackendId& backend); + /// Returns a BackendCapability if the backend lists the capability /// The BackendCapability must then be inspected to check whether or not that BackendCapability is supported /// Otherwise returns an EmptyOptional if the BackendCapability is unlisted |