diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/BackendId.hpp | 3 |
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; }; |