aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/IClTensorHandle.hpp
diff options
context:
space:
mode:
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>2022-01-25 15:15:34 +0000
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>2022-01-27 09:03:19 +0000
commit9ef361469ef64616c1fdb92d57258ac63a26804a (patch)
tree0c42147a6fda88f1c83f0101c8f0c22dff0d169e /src/backends/cl/IClTensorHandle.hpp
parent588cbdfbd20dc524674db40c07cde3c4ffb85d11 (diff)
downloadarmnn-9ef361469ef64616c1fdb92d57258ac63a26804a.tar.gz
IVGCVSW-6687 Implement ICLTensorProxy
* Implement ICLTensorProxy and unit tests * Remove IClImportTensorHandle and use IClTensorHandle to access ICLTensor Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I791d0f2c6f8bad841a56e39e196baf0e533c7124
Diffstat (limited to 'src/backends/cl/IClTensorHandle.hpp')
-rw-r--r--src/backends/cl/IClTensorHandle.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/backends/cl/IClTensorHandle.hpp b/src/backends/cl/IClTensorHandle.hpp
new file mode 100644
index 0000000000..48cf5f57d6
--- /dev/null
+++ b/src/backends/cl/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