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 /src/runtime | |
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 'src/runtime')
-rw-r--r-- | src/runtime/CL/functions/CLSoftmaxLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/CL/functions/CLSoftmaxLayer.cpp b/src/runtime/CL/functions/CLSoftmaxLayer.cpp index 7505a2c974..fa324ee61d 100644 --- a/src/runtime/CL/functions/CLSoftmaxLayer.cpp +++ b/src/runtime/CL/functions/CLSoftmaxLayer.cpp @@ -35,7 +35,7 @@ CLSoftmaxLayer::CLSoftmaxLayer(std::shared_ptr<IMemoryManager> memory_manager) { } -void CLSoftmaxLayer::configure(const ICLTensor *input, ICLTensor *output) +void CLSoftmaxLayer::configure(const ICLTensor *input, ICLTensor *output, float beta) { ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QS8, DataType::QS16, DataType::F16, DataType::F32); @@ -55,7 +55,7 @@ void CLSoftmaxLayer::configure(const ICLTensor *input, ICLTensor *output) // Configure Kernels _max_kernel.configure(input, &_max); - _shift_exp_sum_kernel.configure(input, &_max, &_tmp, &_sum); + _shift_exp_sum_kernel.configure(input, &_max, &_tmp, &_sum, beta); _norm_kernel.configure(&_tmp, &_sum, output); // Allocate intermediate buffers |