diff options
author | Pablo Palmier <Pablo.Palmier@arm.com> | 2017-10-18 11:03:08 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 48a60f9f7b0b7b5cf38253b7a2ac576aac43ef78 (patch) | |
tree | 0e0b519f8c21d61a0bb63c45eca92b5057e351cb /arm_compute/core/CL | |
parent | c9938d26cc12896c4d37eabac185b4fbe3365f93 (diff) | |
download | ComputeLibrary-48a60f9f7b0b7b5cf38253b7a2ac576aac43ef78.tar.gz |
IVGCVSW-632 CL support for Softmax beta parameter
Change-Id: I21da48d2f40aa900301235eaced54b7eb644b0b2
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/91307
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/CL')
-rw-r--r-- | arm_compute/core/CL/kernels/CLSoftmaxLayerKernel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arm_compute/core/CL/kernels/CLSoftmaxLayerKernel.h b/arm_compute/core/CL/kernels/CLSoftmaxLayerKernel.h index 1e641b48d8..60d555019d 100644 --- a/arm_compute/core/CL/kernels/CLSoftmaxLayerKernel.h +++ b/arm_compute/core/CL/kernels/CLSoftmaxLayerKernel.h @@ -60,10 +60,11 @@ public: * * @param[in] input Source tensor. Data types supported: QS8/QS16/F16/F32 * @param[in] max Max values tensor. Data types supported: same as @p input + * @param[in] beta A scaling factor for the exponent. QS8/QS16/F16 only support a beta value of 1. * @param[out] output Destination tensor. Data types supported: same as @p input * @param[out] sum Sum of 1D logits tensor. Data types supported: same as @p input */ - void configure(const ICLTensor *input, const ICLTensor *max, ICLTensor *output, ICLTensor *sum); + void configure(const ICLTensor *input, const ICLTensor *max, ICLTensor *output, ICLTensor *sum, float beta = 1.0f); // Inherited methods overridden: void run(const Window &window, cl::CommandQueue &queue) override; |