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