From ea497da028e09d2251c7d07f2cd490e2fffc00dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 18 Jul 2018 13:04:13 +0900 Subject: [PATCH] [coco] Add 'Op' class (#699) This commit adds 'Op' class which serves as a base interface over all supported NN operations. Signed-off-by: Jonghyun Park --- contrib/coco/core/include/coco/IR/Op.h | 17 +++++++++++++++++ contrib/coco/core/src/IR/Op.cpp | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 contrib/coco/core/include/coco/IR/Op.h create mode 100644 contrib/coco/core/src/IR/Op.cpp diff --git a/contrib/coco/core/include/coco/IR/Op.h b/contrib/coco/core/include/coco/IR/Op.h new file mode 100644 index 0000000..7bcbc8d --- /dev/null +++ b/contrib/coco/core/include/coco/IR/Op.h @@ -0,0 +1,17 @@ +#ifndef __COCO_IR_OP_H__ +#define __COCO_IR_OP_H__ + +namespace coco +{ + +/** + * @breif Base interface on all supported NN operations + */ +struct Op +{ + virtual ~Op() = default; +}; + +} // namespace coco + +#endif // __COCO_IR_OP_H__ diff --git a/contrib/coco/core/src/IR/Op.cpp b/contrib/coco/core/src/IR/Op.cpp new file mode 100644 index 0000000..543eeb9 --- /dev/null +++ b/contrib/coco/core/src/IR/Op.cpp @@ -0,0 +1,3 @@ +#include "coco/IR/Op.h" + +// NOTE Do NOT delete this file; this file checks the completeness of 'Op.h' -- 2.7.4