From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 19 Jul 2018 10:37:48 +0000 (+0900) Subject: [coco] Add 'Object' class template (#727) X-Git-Tag: nncc_backup~2373 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3cc47ad38ab430bd35d9185828a4fce9bafac57;p=platform%2Fcore%2Fml%2Fnnfw.git [coco] Add 'Object' class template (#727) This commit adds 'Object' class template which serves as a base class for all typed values in coco IR, such as vector and feature. Signed-off-by: Jonghyun Park --- diff --git a/contrib/coco/core/include/coco/IR/Object.h b/contrib/coco/core/include/coco/IR/Object.h new file mode 100644 index 0000000..e678e05 --- /dev/null +++ b/contrib/coco/core/include/coco/IR/Object.h @@ -0,0 +1,18 @@ +#ifndef __COCO_IR_OBJECT_H__ +#define __COCO_IR_OBJECT_H__ + +namespace coco +{ + +/** + * @breif Base interface on all typed NN values + */ +class Object +{ +public: + virtual ~Object() = default; +}; + +} // namespace coco + +#endif // __COCO_IR_OBJECT_H__ diff --git a/contrib/coco/core/src/IR/Object.cpp b/contrib/coco/core/src/IR/Object.cpp new file mode 100644 index 0000000..c83a9ec --- /dev/null +++ b/contrib/coco/core/src/IR/Object.cpp @@ -0,0 +1,3 @@ +#include "coco/IR/Object.h" + +// NOTE Do NOT delete this file; this file checks the completeness of 'Object.h'