diff options
Diffstat (limited to 'runtimes/pure_arm_compute/src/internal/op/ReLU1.h')
-rw-r--r-- | runtimes/pure_arm_compute/src/internal/op/ReLU1.h | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/runtimes/pure_arm_compute/src/internal/op/ReLU1.h b/runtimes/pure_arm_compute/src/internal/op/ReLU1.h index 997a9faff..330445af8 100644 --- a/runtimes/pure_arm_compute/src/internal/op/ReLU1.h +++ b/runtimes/pure_arm_compute/src/internal/op/ReLU1.h @@ -14,6 +14,12 @@ * limitations under the License. */ +/** + * @file ReLU1.h + * @brief This file contains accept function and params for ReLU1 operation + * @ingroup COM_AI_RUNTIME + */ + #ifndef __INTERNAL_OP_RELU1_H__ #define __INTERNAL_OP_RELU1_H__ @@ -30,31 +36,64 @@ namespace op namespace ReLU1 { +/** + * @brief Struct of ReLU1 operation's param + */ struct Param { - int32_t ofm_index; + int32_t ofm_index; /**< Output format index */ - int32_t ifm_index; + int32_t ifm_index; /**< Input format index */ + /** + * @brief Construct a new Param object for ReLU1 as default + */ Param() = default; + + /** + * @brief Construct a new Param object for ReLU1 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 ReLU1 + */ class Node final : public op::Node { public: + /** + * @brief Construct a new Node object for ReLU1 with param + * @param [in] param Parameters for Node + */ Node(const Param ¶m) : _param(param) { // DO NOTHING } public: + /** + * @brief Destroy the Node object for ReLU1 + */ virtual ~Node() = default; public: + /** + * @brief Get parameters for ReLU1 + * @return Parameters of ReLU1 + */ const Param ¶m(void) const { return _param; } public: + /** + * @brief Function for accepting node for ReLU1 + * @param [in] v Node visitor for invoking visit function of ReLU1 + * @return N/A + */ void accept(NodeVisitor &&) const override; private: |