From 861f0db548befac0cd5fb28fe2fa8ea1828c715d Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 26 Feb 2018 16:47:58 +0000 Subject: COMPMID-941 Add NEON broadcast multiply support Change-Id: I1f808c25750461bec9a28b2f6615fbd0f624117a Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122262 Reviewed-by: Michele DiGiorgio Tested-by: Jenkins Reviewed-by: Anthony Barbier --- .../NEON/functions/NEPixelWiseMultiplication.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h') diff --git a/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h b/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h index 7d22500c5e..7d5e397e80 100644 --- a/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h +++ b/arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017 ARM Limited. + * Copyright (c) 2016-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -37,14 +37,17 @@ class NEPixelWiseMultiplication : public INESimpleFunction public: /** Initialise the kernel's inputs, output and convertion policy. * - * @param[in] input1 First tensor input. Data types supported: U8/QS8/S16/F32. - * @param[in] input2 Second tensor input. Data types supported: U8/QS8/S16/F32. - * @param[out] output Output tensor. Data types supported: U8/QS8/S16/F32. - * @param[in] scale Scale to apply after multiplication. Must be positive. - * @param[in] overflow_policy Overflow policy. - * @param[in] rounding_policy Rounding policy. + * @param[in, out] input1 An input tensor. Data types supported: U8/QS8/S16/F32. + * The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. + * @param[in, out] input2 An input tensor. Data types supported: same as @p input1. + * The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. + * @param[out] output Output tensor. Data types supported: U8/QS8/S16/F32. + * @param[in] scale Scale to apply after multiplication. + * Scale must be positive and its value must be either 1/255 or 1/2^n where n is between 0 and 15. For QS8 and QS16 scale must be 1. + * @param[in] overflow_policy Overflow policy. + * @param[in] rounding_policy Rounding policy. */ - void configure(const ITensor *input1, const ITensor *input2, ITensor *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy); + void configure(ITensor *input1, ITensor *input2, ITensor *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy); /** Static function to check if given info will lead to a valid configuration of @ref NEPixelWiseMultiplication * * @param[in] input1 First tensor info input. Data types supported: U8/QS8/S16/F32. -- cgit v1.2.1