From 342d1bc48338e88a2585ea2bc822ff4f5e47a244 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Wed, 24 Jul 2019 14:51:51 +0100 Subject: COMPMID-2336: Additional warnings for import_memory() warning about the use of inplace operators have been added for OpenCL and CPU Change-Id: Ica8f50c138d94dfca6c301f6580346ec4e241c9b Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/1602 Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- arm_compute/runtime/CL/CLTensorAllocator.h | 1 + arm_compute/runtime/TensorAllocator.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arm_compute/runtime/CL/CLTensorAllocator.h b/arm_compute/runtime/CL/CLTensorAllocator.h index a60594ca3e..982cc51274 100644 --- a/arm_compute/runtime/CL/CLTensorAllocator.h +++ b/arm_compute/runtime/CL/CLTensorAllocator.h @@ -114,6 +114,7 @@ public: * @warning memory is expected to be aligned with the device requirements. * @warning tensor shouldn't be memory managed. * @warning ownership of memory is not transferred. + * @warning memory must be writable in case of in-place operations * @warning padding should be accounted by the client code. * @note buffer size will be checked to be compliant with total_size reported by ITensorInfo. * diff --git a/arm_compute/runtime/TensorAllocator.h b/arm_compute/runtime/TensorAllocator.h index c2a370fb58..28141134cb 100644 --- a/arm_compute/runtime/TensorAllocator.h +++ b/arm_compute/runtime/TensorAllocator.h @@ -99,6 +99,7 @@ public: * @warning ownership of memory is not transferred. * @warning tensor shouldn't be memory managed. * @warning padding should be accounted by the client code. + * @warning memory must be writable in case of in-place operations * @note buffer alignment will be checked to be compliant with alignment reported by ITensorInfo. * * @param[in] memory Raw memory pointer to be used as backing memory -- cgit v1.2.1