Add Concat operation description class (#279)
authorVladimir Plazun/AI Tools Lab/Engineer/삼성전자 <v.plazun@partner.samsung.com>
Fri, 1 Jun 2018 12:23:31 +0000 (16:23 +0400)
committerSergey Vostokov/AI Tools Lab/Staff Engineer/삼성전자 <s.vostokov@samsung.com>
Fri, 1 Jun 2018 12:23:31 +0000 (15:23 +0300)
This class is used to represent concatenation operation in computation graph

Signed-off-by: Vladimir Plazun <v.plazun@partner.samsung.com>
contrib/nnc/libs/core/include/nnc/core/IR/model/operations/concat_op.h [new file with mode: 0644]

diff --git a/contrib/nnc/libs/core/include/nnc/core/IR/model/operations/concat_op.h b/contrib/nnc/libs/core/include/nnc/core/IR/model/operations/concat_op.h
new file mode 100644 (file)
index 0000000..9359b0f
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef _NNC_CORE_IR_MODEL_CONCAT_OP_H_
+#define _NNC_CORE_IR_MODEL_CONCAT_OP_H_
+
+#include "nnc/core/IR/model/operations/operation.h"
+
+namespace nncc
+{
+namespace contrib
+{
+namespace core
+{
+namespace IR
+{
+namespace model
+{
+namespace ops
+{
+
+class ConcatOp : public OpDescription
+{
+public:
+  ConcatOp(int num_inputs, unsigned int axis) : OpDescription(num_inputs, 1), _axis(axis) {}
+
+  unsigned int getAxis() const { return _axis; }
+
+private:
+  unsigned int _axis;
+};
+
+} // namespace ops
+} // namespace model
+} // namespace IR
+} // namespace core
+} // namespace contrib
+} // namespace nncc
+
+#endif //_NNC_CORE_IR_MODEL_CONCAT_OP_H_