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/Tensor.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'arm_compute/runtime/Tensor.h') diff --git a/arm_compute/runtime/Tensor.h b/arm_compute/runtime/Tensor.h index 7022afff87..6fa7c8ca0e 100644 --- a/arm_compute/runtime/Tensor.h +++ b/arm_compute/runtime/Tensor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 ARM Limited. + * Copyright (c) 2016-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -34,7 +34,7 @@ namespace arm_compute class ITensorInfo; /** Basic implementation of the tensor interface */ -class Tensor : public ITensor +class Tensor : public ITensor, public IMemoryManageable { public: /** Constructor */ @@ -55,6 +55,7 @@ public: ITensorInfo *info() const override; ITensorInfo *info() override; uint8_t *buffer() const override; + void associate_memory_group(IMemoryGroup *memory_group) override; private: mutable TensorAllocator _allocator; /**< Instance of the basic CPU allocator.*/ @@ -62,5 +63,5 @@ private: /** Image */ using Image = Tensor; -} +} // namespace arm_compute #endif /*__ARM_COMPUTE_TENSOR_H__ */ -- cgit v1.2.1