aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-08-05 14:12:11 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-08-09 08:49:22 +0100
commit0c2b2897cb65b562b97014ae748e91d8b9a3d3b4 (patch)
treef4833fedc412ab4c434ca3c4181389f54b6487d2 /include
parente54aa06ec19813b737513ecb8224285d98e871ba (diff)
downloadarmnn-0c2b2897cb65b562b97014ae748e91d8b9a3d3b4.tar.gz
IVGCVSW-3596 Register the dynamic backends in the BackendRegistry
* Added getter for the factory function in the DynamicBackend class * Added new RegisterDynamicBackends method in utils class * Added dynamic backend registration process in the Runtime class * Added new dummy dynamic backend objects for testing * Added unit tests for dynamic backend registration * Added convenience methods to BackendId Change-Id: I01e147d1d6f01bf56747ad946f73f867af5770c4 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/armnn/BackendId.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/armnn/BackendId.hpp b/include/armnn/BackendId.hpp
index 7dd1460bc1..59d4ac1d45 100644
--- a/include/armnn/BackendId.hpp
+++ b/include/armnn/BackendId.hpp
@@ -129,6 +129,9 @@ public:
const std::string& Get() const { return m_Id; }
+ bool IsEmpty() const { return m_Id.empty(); }
+ bool IsUndefined() const { return m_Id == GetComputeDeviceAsCString(Compute::Undefined); }
+
private:
std::string m_Id;
};