From 26014cf4d0519aef280c8444c60ec34c4e37e3b6 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 9 Sep 2019 19:00:57 +0100 Subject: COMPMID-2649: Generalize MemoryGroup. Avoids any upcasting. Change-Id: I2181c7c9df59a7fb8a78e11934fbd96058fd39c7 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/1918 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice --- arm_compute/runtime/CL/CLTensor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arm_compute/runtime/CL/CLTensor.h') diff --git a/arm_compute/runtime/CL/CLTensor.h b/arm_compute/runtime/CL/CLTensor.h index 65ff4f2bba..bc72839492 100644 --- a/arm_compute/runtime/CL/CLTensor.h +++ b/arm_compute/runtime/CL/CLTensor.h @@ -37,7 +37,7 @@ class ITensorAllocator; class ITensorInfo; /** Basic implementation of the OpenCL tensor interface */ -class CLTensor : public ICLTensor +class CLTensor : public ICLTensor, public IMemoryManageable { public: /** Constructor */ @@ -68,6 +68,7 @@ public: TensorInfo *info() override; const cl::Buffer &cl_buffer() const override; CLQuantization quantization() const override; + void associate_memory_group(IMemoryGroup *memory_group) override; protected: // Inherited methods overridden: @@ -80,5 +81,5 @@ private: /** OpenCL Image */ using CLImage = CLTensor; -} +} // namespace arm_compute #endif /*__ARM_COMPUTE_CLTENSOR_H__ */ -- cgit v1.2.1