aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/Types.hpp
diff options
context:
space:
mode:
authorDavid Beck <david.beck@arm.com>2018-10-10 15:11:44 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-22 16:57:53 +0100
commit9df2d951616e3d76b67a9852d5324de96633f0f9 (patch)
tree37a57a98ef8aafba748d332bfc686e2b022398d6 /include/armnn/Types.hpp
parent6b779f0e437127bfa71a529e9b848b5e41683ab8 (diff)
downloadarmnn-9df2d951616e3d76b67a9852d5324de96633f0f9.tar.gz
IVGCVSW-1952 : add BackendId class to prepare for the replacement of Compute enum
!armnn:152674 Change-Id: I1bcdfdfbfb73e502d58f35717e2558e24651013c
Diffstat (limited to 'include/armnn/Types.hpp')
-rw-r--r--include/armnn/Types.hpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp
index b7ee9472a3..4afc50b1b1 100644
--- a/include/armnn/Types.hpp
+++ b/include/armnn/Types.hpp
@@ -7,6 +7,7 @@
#include <array>
#include <memory>
#include "ILayerSupport.hpp"
+#include "BackendId.hpp"
namespace armnn
{
@@ -94,17 +95,6 @@ enum class OutputShapeRounding
Ceiling = 1
};
-enum class Compute
-{
- /// CPU Execution: Reference C++ kernels
- CpuRef = 0,
- /// CPU Execution: NEON: ArmCompute
- CpuAcc = 1,
- /// GPU Execution: OpenCL: ArmCompute
- GpuAcc = 2,
- Undefined = 5
-};
-
/// Each backend should implement an IBackend.
class IBackend
{
@@ -113,7 +103,7 @@ protected:
virtual ~IBackend() {}
public:
- virtual const std::string& GetId() const = 0;
+ virtual const BackendId& GetId() const = 0;
virtual const ILayerSupport& GetLayerSupport() const = 0;
};
@@ -189,4 +179,4 @@ private:
/// Define LayerGuid type.
using LayerGuid = unsigned int;
-}
+} // namespace armnn