aboutsummaryrefslogtreecommitdiff
path: root/src/backends/aclCommon/IClTensorHandle.hpp
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2023-01-11 13:03:21 +0000
committerCathal Corbett <cathal.corbett@arm.com>2023-01-11 16:39:24 +0000
commitd9e55f05847792edbbf6a8c2c4d3901d37f63d1f (patch)
treedc090a997991ef97dfc976eea24cfba1f732ea68 /src/backends/aclCommon/IClTensorHandle.hpp
parent9c843c3e99a8cb1951399171ceddb01c43924fa2 (diff)
downloadarmnn-d9e55f05847792edbbf6a8c2c4d3901d37f63d1f.tar.gz
Move tuning and IClTensorHandle code from cl to aclCommon backend.
* Required to enable easier future merging and rebase into experimental/GpuFsa as part of IVGCVSW-7380. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I066dcf00523ff430a0908666e452548ab848bd86
Diffstat (limited to 'src/backends/aclCommon/IClTensorHandle.hpp')
-rw-r--r--src/backends/aclCommon/IClTensorHandle.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/backends/aclCommon/IClTensorHandle.hpp b/src/backends/aclCommon/IClTensorHandle.hpp
new file mode 100644
index 0000000000..48cf5f57d6
--- /dev/null
+++ b/src/backends/aclCommon/IClTensorHandle.hpp
@@ -0,0 +1,22 @@
+//
+// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+#pragma once
+
+#include <arm_compute/core/CL/ICLTensor.h>
+#include <arm_compute/runtime/MemoryGroup.h>
+
+namespace armnn
+{
+
+class IClTensorHandle : public IAclTensorHandle
+{
+public:
+ virtual arm_compute::ICLTensor& GetTensor() = 0;
+ virtual arm_compute::ICLTensor const& GetTensor() const = 0;
+ virtual arm_compute::DataType GetDataType() const = 0;
+ virtual void SetMemoryGroup(const std::shared_ptr<arm_compute::IMemoryGroup>& memoryGroup) = 0;
+};
+
+} //namespace armnn \ No newline at end of file