diff options
author | Usama Arif <usama.arif@arm.com> | 2019-03-11 12:20:20 +0000 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2019-03-14 10:37:30 +0000 |
commit | e03802edd37229a1868bacedd7571cc443810caf (patch) | |
tree | 018d294c4b55a64bc0fa579f5c011baeb2aaa6a4 /arm_compute/core/CL/kernels | |
parent | 917959c88361e8148696c156453f69c6ae0c95c0 (diff) | |
download | ComputeLibrary-e03802edd37229a1868bacedd7571cc443810caf.tar.gz |
COMPMID-1936: Add support for QASYMM8 in CLQuantizeLayer.
Change-Id: I9aa1f1f1753bcdee6a74ec15b4fb366f823788b4
Signed-off-by: Usama Arif <usama.arif@arm.com>
Reviewed-on: https://review.mlplatform.org/c/850
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/CL/kernels')
-rw-r--r-- | arm_compute/core/CL/kernels/CLQuantizationLayerKernel.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/arm_compute/core/CL/kernels/CLQuantizationLayerKernel.h b/arm_compute/core/CL/kernels/CLQuantizationLayerKernel.h index 5d78dce1c2..d16ae546ff 100644 --- a/arm_compute/core/CL/kernels/CLQuantizationLayerKernel.h +++ b/arm_compute/core/CL/kernels/CLQuantizationLayerKernel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -49,24 +49,20 @@ public: CLQuantizationLayerKernel &operator=(CLQuantizationLayerKernel &&) = default; /** Default destructor */ ~CLQuantizationLayerKernel() = default; - /** Set the input, output, min and max. + /** Set the input, output. * - * @param[in] input Source tensor with at least 3 dimensions. The dimensions over the third will be interpreted as batches. Data types supported: F32. - * @param[out] output Destination tensor with the same dimensions of input. Output data type must be U8. - * @param[in] min_max Pointer to the tensor with shape [2, batches] which stores the minimum and maximum value for each 3D input tensor. - * The dimensions over the second must match the batched dimensions of the input tensor. Data type supported: F32. + * @param[in] input Source tensor. Data types supported: F32/F16. + * @param[out] output Destination tensor with the same dimensions of input. Output data type must be QASYMM8. */ - void configure(const ICLTensor *input, ICLTensor *output, ICLTensor *min_max); + void configure(const ICLTensor *input, ICLTensor *output); /** Static function to check if given info will lead to a valid configuration of @ref CLQuantizationLayerKernel * - * @param[in] input Input tensor info. Data types supported: F32. - * @param[in] output Output tensor info. Output data type must be U8. - * @param[in] min_max Info for the tensor with shape [2, batches] which stores the minimum and maximum value for each 3D input tensor. - * The dimensions over the second must match the batched dimensions of the input tensor. Data type supported: F32. + * @param[in] input Input tensor info. Data types supported: F32/F16. + * @param[in] output Output tensor info. Output data type must be QASYMM8. * * @return a status */ - static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ITensorInfo *min_max); + static Status validate(const ITensorInfo *input, const ITensorInfo *output); // Inherited methods overridden: void run(const Window &window, cl::CommandQueue &queue) override; @@ -74,7 +70,6 @@ public: private: const ICLTensor *_input; ICLTensor *_output; - const ICLTensor *_min_max; }; } // namespace arm_compute #endif /*__ARM_COMPUTE_CLQUANTIZATIONLAYERKERNEL_H__ */ |