diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2018-08-02 12:02:48 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 6b4e604aa2f8598bce37abe76654b87a41ababb7 (patch) | |
tree | 8e65c4144d77573dcd0022d4326c7c8e1b042675 /arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h | |
parent | 088c2b038ea2de67e90f8a7179c129133127f854 (diff) | |
download | ComputeLibrary-6b4e604aa2f8598bce37abe76654b87a41ababb7.tar.gz |
COMPMID-1303: CLDepthConvert : Add support for FP32 -> FP16 and FP16 -> FP32 + validate() function
Change-Id: I6808de0254a7c4bca440322cc14b795b3b32465b
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/142427
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h')
-rw-r--r-- | arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h b/arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h index 7e795c607a..b70a6a993a 100644 --- a/arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h +++ b/arm_compute/core/CL/kernels/CLDepthConvertLayerKernel.h @@ -48,13 +48,25 @@ public: * - S16 -> U8, U32, S32 * - U32 -> U8, U16, S16 * - S32 -> U8, U16, S16 + * - F16 -> F32 + * - F32 -> F16 * - * @param[in] input The input tensor to convert. Data types supported: U8/U16/S16/U32/S32/F32. - * @param[out] output The output tensor. Data types supported: U8/U16/S16/U32/S32/F32. + * @param[in] input The input tensor to convert. Data types supported: U8/U16/S16/U32/S32/F16/F32. + * @param[out] output The output tensor. Data types supported: U8/U16/S16/U32/S32/F16/F32. * @param[in] policy Conversion policy * @param[in] shift Value for down/up conversions. Must be 0 <= shift < 8. */ void configure(const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift); + /** Static function to check if given info will lead to a valid configuration of @ref CLDepthConvertLayerKernel + * + * @param[in] input Source tensor info. Data types supported: U8/U16/S16/U32/S32/F16/F32. + * @param[in] output Destination tensor info. Data type supported: U8/U16/S16/U32/S32/F16/F32. + * @param[in] policy Conversion policy + * @param[in] shift Value for down/up conversions. Must be 0 <= shift < 8. + * + * @return a status + */ + static Status validate(const ITensorInfo *input, const ITensorInfo *output, ConvertPolicy policy, uint32_t shift); }; } // namespace arm_compute #endif /*__ARM_COMPUTE_CLDEPTHCONVERTKERNEL_H__ */ |