diff options
Diffstat (limited to 'runtimes/pure_arm_compute/src/internal/op/Softmax.h')
-rw-r--r-- | runtimes/pure_arm_compute/src/internal/op/Softmax.h | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/runtimes/pure_arm_compute/src/internal/op/Softmax.h b/runtimes/pure_arm_compute/src/internal/op/Softmax.h index 746f6b4e6..6e631af5f 100644 --- a/runtimes/pure_arm_compute/src/internal/op/Softmax.h +++ b/runtimes/pure_arm_compute/src/internal/op/Softmax.h @@ -14,6 +14,12 @@ * limitations under the License. */ +/** + * @file Softmax.h + * @brief This file contains accept function and params for Softmax operation + * @ingroup COM_AI_RUNTIME + */ + #ifndef __INTERNAL_OP_SOFTMAX_H__ #define __INTERNAL_OP_SOFTMAX_H__ @@ -30,32 +36,65 @@ namespace op namespace Softmax { +/** + * @brief Struct of Softmax operation's param + */ struct Param { - int32_t output_index; + int32_t output_index; /**< Output index */ - int32_t input_index; - int32_t scale_index; + int32_t input_index; /**< Input index */ + int32_t scale_index; /**< Scale index */ + /** + * @brief Construct a new Param object for Softmax as default + */ Param() = default; + + /** + * @brief Construct a new Param object for Softmax with params + * @param [in] inputCount The number of input + * @param [in] inputs Array containing inputs + * @param [in] outputCount The number of output + * @param [in] outputs Array containing outputs + */ Param(uint32_t inputCount, const uint32_t *inputs, uint32_t outputCount, const uint32_t *outputs); }; +/** + * @brief Class to define operation node for Softmax + */ class Node final : public op::Node { public: + /** + * @brief Construct a new Node object for Softmax with param + * @param [in] param Parameters for Node + */ Node(const Param ¶m) : _param(param) { // DO NOTHING } public: + /** + * @brief Destroy the Node object for Softmax + */ virtual ~Node() = default; public: + /** + * @brief Get parameters for Softmax + * @return Parameters of Softmax + */ const Param ¶m(void) const { return _param; } public: + /** + * @brief Function for accepting node for Softmax + * @param [in] v Node visitor for invoking visit function of Softmax + * @return N/A + */ void accept(NodeVisitor &&) const override; private: |