diff options
author | Francis Murtagh <francis.murtagh@arm.com> | 2019-07-23 09:50:50 +0100 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2019-07-23 09:50:56 +0100 |
commit | 07f2121feeeeae36a7e67eeb8a6965df63b848f3 (patch) | |
tree | 836ebdec3ca1305f6533bde3f6410780a5173781 /include/armnn/Descriptors.hpp | |
parent | 6f3785d4f612e06854ab63dffbd2cd3d484c2e14 (diff) | |
download | armnn-07f2121feeeeae36a7e67eeb8a6965df63b848f3.tar.gz |
IVGCVSW-3536 Add Axis parameter to reference Softmax implementation
* Add Axis parameter to Softmax Descriptor
* Add new reference implementation for Softmax using Axis parameter
* Add unit tests to cover each Axis
Change-Id: Iafac2275d2212337456f2b1b56b0f76f77fb9543
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Diffstat (limited to 'include/armnn/Descriptors.hpp')
-rw-r--r-- | include/armnn/Descriptors.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/armnn/Descriptors.hpp b/include/armnn/Descriptors.hpp index 377f0705d7..9630d86197 100644 --- a/include/armnn/Descriptors.hpp +++ b/include/armnn/Descriptors.hpp @@ -49,9 +49,15 @@ struct PermuteDescriptor /// A SoftmaxDescriptor for the SoftmaxLayer. struct SoftmaxDescriptor { - SoftmaxDescriptor() : m_Beta(1.0f) {} + SoftmaxDescriptor() + : m_Beta(1.0f) + , m_Axis(-1) + {} + /// Exponentiation value. - float m_Beta; + float m_Beta; + /// Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed on. + int m_Axis; }; /// @brief An OriginsDescriptor for the ConcatLayer. |