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