summaryrefslogtreecommitdiff
path: root/runtimes/pure_arm_compute/src/internal/op/Concat.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtimes/pure_arm_compute/src/internal/op/Concat.h')
-rw-r--r--runtimes/pure_arm_compute/src/internal/op/Concat.h46
1 files changed, 42 insertions, 4 deletions
diff --git a/runtimes/pure_arm_compute/src/internal/op/Concat.h b/runtimes/pure_arm_compute/src/internal/op/Concat.h
index 185cba3e1..207f964fb 100644
--- a/runtimes/pure_arm_compute/src/internal/op/Concat.h
+++ b/runtimes/pure_arm_compute/src/internal/op/Concat.h
@@ -14,6 +14,12 @@
* limitations under the License.
*/
+/**
+ * @file Concat.h
+ * @ingroup COM_AI_RUNTIME
+ * @brief This file defines Concat node
+ */
+
#ifndef __INTERNAL_OP_CONCAT_H__
#define __INTERNAL_OP_CONCAT_H__
@@ -31,36 +37,68 @@ namespace op
namespace Concat
{
+/**
+ * @brief Struct to manipulate parameter for Concat operation
+ */
struct Param
{
- int32_t ofm_index;
+ int32_t ofm_index; //!< index for output
- std::vector<int32_t> ifm_indexes;
- int32_t axis_index;
+ std::vector<int32_t> ifm_indexes; //!< index for input
+ int32_t axis_index; //!< index for axis
+ /**
+ * @brief Default Constructor
+ */
Param() = default;
+ /**
+ * @brief Construct a new Param object
+ * @param[in] inputCount the number of inputs
+ * @param[in] inputs pointer for input data
+ * @param[in] outputCount the number of outputs
+ * @param[in] outputs pointer for input data
+ */
Param(uint32_t inputCount, const uint32_t *inputs, uint32_t outputCount, const uint32_t *outputs);
};
+/**
+ * @brief Class to define Concat Operation
+ */
class Node final : public op::Node
{
public:
+ /**
+ * @brief Construct a new Concat Node object
+ * @param param Parameter for Concat Node
+ */
Node(const Param &param) : _param(param)
{
// DO NOTHING
}
public:
+ /**
+ * @brief Default Destructor
+ */
virtual ~Node() = default;
public:
+ /**
+ * @brief Get parameter
+ * @return Param reference
+ */
const Param &param(void) const { return _param; }
public:
+ /**
+ * @brief Accept a NodeVisitor so that it can visit this node
+ * @param [in] v Visitor
+ * @return N/A
+ */
void accept(NodeVisitor &&) const override;
private:
- const Param _param;
+ const Param _param; //!< parameter for Concat node
};
} // namespace Concat