From c51b72fe34e6018a1807a2c78228da7beeee1750 Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Fri, 28 Jul 2017 14:46:20 +0100 Subject: COMPMID-355 Implement CL DirectConvolution1x1 * Add FP16 to validation tests. * Complete benchmark tests for CL and NEON Direct Convolution. Change-Id: Ie73d8580832372db01b82b39786fd9c8be560090 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82014 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- arm_compute/core/CL/CLHelpers.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arm_compute/core/CL/CLHelpers.h') diff --git a/arm_compute/core/CL/CLHelpers.h b/arm_compute/core/CL/CLHelpers.h index eeb3e7699d..1a4476e304 100644 --- a/arm_compute/core/CL/CLHelpers.h +++ b/arm_compute/core/CL/CLHelpers.h @@ -53,6 +53,14 @@ static constexpr const unsigned int max_cl_vector_width = 16; */ std::string get_cl_type_from_data_type(const DataType &dt); +/** Get the size of a data type in number of bits. + * + * @param[in] dt @ref DataType. + * + * @return Number of bits in the data type specified. + */ +std::string get_data_size_from_data_type(const DataType &dt); + /** Translates fixed point tensor data type to the underlying OpenCL type. * * @param[in] dt @ref DataType to be translated to OpenCL type. -- cgit v1.2.1