aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/ClImportTensorHandle.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/ClImportTensorHandle.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/ClImportTensorHandle.hpp')
-rw-r--r--src/backends/cl/ClImportTensorHandle.hpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/backends/cl/ClImportTensorHandle.hpp b/src/backends/cl/ClImportTensorHandle.hpp
index 18cd1ffeb4..a236a70d7c 100644
--- a/src/backends/cl/ClImportTensorHandle.hpp
+++ b/src/backends/cl/ClImportTensorHandle.hpp
@@ -19,22 +19,15 @@
#include <arm_compute/core/TensorShape.h>
#include <arm_compute/core/Coordinates.h>
+#include <cl/IClTensorHandle.hpp>
+
#include <CL/cl_ext.h>
#include <arm_compute/core/CL/CLKernelLibrary.h>
namespace armnn
{
-class IClImportTensorHandle : 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;
-};
-
-class ClImportTensorHandle : public IClImportTensorHandle
+class ClImportTensorHandle : public IClTensorHandle
{
public:
ClImportTensorHandle(const TensorInfo& tensorInfo, MemorySourceFlags importFlags)
@@ -380,12 +373,12 @@ private:
bool m_Imported;
};
-class ClImportSubTensorHandle : public IClImportTensorHandle
+class ClImportSubTensorHandle : public IClTensorHandle
{
public:
- ClImportSubTensorHandle(IClImportTensorHandle* parent,
- const arm_compute::TensorShape& shape,
- const arm_compute::Coordinates& coords)
+ ClImportSubTensorHandle(IClTensorHandle* parent,
+ const arm_compute::TensorShape& shape,
+ const arm_compute::Coordinates& coords)
: m_Tensor(&parent->GetTensor(), shape, coords)
{
parentHandle = parent;