From 894066de8cc26d1a3aca62dcaa6b30a2a1116028 Mon Sep 17 00:00:00 2001 From: George Wort Date: Fri, 15 Feb 2019 15:12:52 +0000 Subject: COMPMID-1844: Implement CLCrop Change-Id: I8822c37adc45960705dc3f32a53214795ba3cf39 Signed-off-by: George Wort Reviewed-on: https://review.mlplatform.org/c/789 Reviewed-by: Manuel Bottini Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez --- arm_compute/core/CL/kernels/CLMemsetKernel.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'arm_compute/core/CL/kernels/CLMemsetKernel.h') diff --git a/arm_compute/core/CL/kernels/CLMemsetKernel.h b/arm_compute/core/CL/kernels/CLMemsetKernel.h index e35a9f1cf2..c79b6f4d60 100644 --- a/arm_compute/core/CL/kernels/CLMemsetKernel.h +++ b/arm_compute/core/CL/kernels/CLMemsetKernel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -53,22 +53,25 @@ public: * * @param[in,out] tensor Input tensor to fill. Supported data types: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32 * @param[in] constant_value The value used to fill the planes of the tensor + * @param[in] window Window to be used in case setting only part of a tensor. Default is nullptr. */ - void configure(ICLTensor *tensor, const PixelValue &constant_value); + void configure(ICLTensor *tensor, const PixelValue &constant_value, Window *window = nullptr); /** Static function to check if given info will lead to a valid configuration of @ref CLMemsetKernel * * @param[in] tensor Source tensor info. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32 * @param[in] constant_value The value used to fill the planes of the tensor + * @param[in] window Window to be used in case setting only part of a tensor. Default is nullptr. * * @return a status */ - static Status validate(const ITensorInfo *tensor, const PixelValue &constant_value); + static Status validate(const ITensorInfo *tensor, const PixelValue &constant_value, Window *window = nullptr); // Inherited methods overridden: void run(const Window &window, cl::CommandQueue &queue) override; private: ICLTensor *_tensor; + Window _full_window; }; } // namespace arm_compute #endif /*__ARM_COMPUTE_CLMEMSETRKERNEL_H__ */ -- cgit v1.2.1