From df3103622b7de05f4e35b22a2c94b4a46eab4efc Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 14 Nov 2018 13:16:56 +0000 Subject: COMPMID-1088: Use IMemoryRegion in interfaces where possible -Simplifies import memory interface -Changes the used of void** handles with appropriate interfaces. Change-Id: I5918c855c11f46352058864623336b352162a4b7 --- arm_compute/runtime/TensorAllocator.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'arm_compute/runtime/TensorAllocator.h') diff --git a/arm_compute/runtime/TensorAllocator.h b/arm_compute/runtime/TensorAllocator.h index 2ad37d0576..ba9e5163ab 100644 --- a/arm_compute/runtime/TensorAllocator.h +++ b/arm_compute/runtime/TensorAllocator.h @@ -95,17 +95,11 @@ public: void free() override; /** Import an existing memory as a tensor's backing memory * - * @warning If the tensor is flagged to be managed by a memory manager, - * this call will lead to an error. - * @warning Ownership of memory depends on the way the @ref Memory object was constructed - * @note Calling free on a tensor with imported memory will just clear - * the internal pointer value. - * - * @param[in] memory Memory to import + * @warning ownership of memory is not transferred * * @return error status */ - arm_compute::Status import_memory(Memory memory); + arm_compute::Status import_memory(void *memory, size_t size); /** Associates the tensor with a memory group * * @param[in] associated_memory_group Memory group to associate the tensor with -- cgit v1.2.1