aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/backends
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2021-05-26 18:38:12 +0100
committerFinn Williams <Finn.Williams@arm.com>2021-06-09 17:18:10 +0100
commitb9af86ea42568ade799ee5529137e4756977b6c6 (patch)
tree261003078fd2191b22ee7465e07668cbed666553 /include/armnn/backends
parent5b1bcc93820b442bc4035c1e030a8d4a0983df91 (diff)
downloadarmnn-b9af86ea42568ade799ee5529137e4756977b6c6.tar.gz
IVGCVSW-5855 Refactor the reporting of capabilities from backends
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I05fc331a8e91bdcb6b8a2f32cfb555060fc5d797
Diffstat (limited to 'include/armnn/backends')
-rw-r--r--include/armnn/backends/IBackendInternal.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/armnn/backends/IBackendInternal.hpp b/include/armnn/backends/IBackendInternal.hpp
index 135d279c21..b8edfe1f71 100644
--- a/include/armnn/backends/IBackendInternal.hpp
+++ b/include/armnn/backends/IBackendInternal.hpp
@@ -178,7 +178,16 @@ public:
/// Returns the version of the Backend API
static constexpr BackendVersion GetApiVersion() { return BackendVersion(1, 0); }
+ /// 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
+ virtual BackendCapabilities GetCapabilities() const
+ {
+ return BackendCapabilities("IBackendInternal NullCapabilities");
+ };
+
/// Returns true if backend support the capability false otherwise
+ ARMNN_DEPRECATED_MSG("This function has been deprecated in favour of GetCapability")
virtual bool HasCapability(BackendCapability /*capabilityClass*/) const { return false; }
};