From 16b37527906c68885f81a8db35f9d6040d73efec Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Tue, 18 Jul 2023 17:56:49 +0100 Subject: Port ElementwiseBinary to CKW part 2 * Add fp16 support * Implement broadcasting to elementwise binary * Implement kernel name and kernel config id * Always use explicit cast in ckw unary, binary and ternary elementwise functions. This is to address the accidental use of double literals, with other benefits. * Refactor TypeConverter for smaller includes Resolves COMPMID-6260 Change-Id: I26b726746f8c0dd7b5942ad379d56f4d7642d15f Signed-off-by: SiCong Li Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9999 Tested-by: Arm Jenkins Reviewed-by: Jakub Sujak Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- arm_compute/core/utils/StringUtils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute') diff --git a/arm_compute/core/utils/StringUtils.h b/arm_compute/core/utils/StringUtils.h index a91ef2387d..41f29b0901 100644 --- a/arm_compute/core/utils/StringUtils.h +++ b/arm_compute/core/utils/StringUtils.h @@ -25,6 +25,7 @@ #define ARM_COMPUTE_CORE_UTILS_STRINGUTILS_H #include +#include namespace arm_compute { @@ -51,5 +52,14 @@ std::string upper_string(const std::string &val); * @return String with the floating point value. */ std::string float_to_string_with_full_precision(float val); + +/** Join a sequence of strings with separator @p sep + * + * @param[in] strings Strings to join + * @param[in] sep Separator to join consecutive strings in the sequence + * + * @return std::string + */ +std::string join(const std::vector strings, const std::string &sep); } #endif /*ARM_COMPUTE_CORE_UTILS_STRINGUTILS_H */ -- cgit v1.2.1