From 9ef361469ef64616c1fdb92d57258ac63a26804a Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Tue, 25 Jan 2022 15:15:34 +0000 Subject: IVGCVSW-6687 Implement ICLTensorProxy * Implement ICLTensorProxy and unit tests * Remove IClImportTensorHandle and use IClTensorHandle to access ICLTensor Signed-off-by: Narumol Prangnawarat Change-Id: I791d0f2c6f8bad841a56e39e196baf0e533c7124 --- src/backends/cl/ClImportTensorHandle.hpp | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'src/backends/cl/ClImportTensorHandle.hpp') 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 #include +#include + #include #include 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& 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; -- cgit v1.2.1