From b569dd1e3b2e4db5878bbff1ab5a62990010ebb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=82=A8=EA=B6=81=EC=84=9D/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 18 Jun 2019 07:32:53 +0900 Subject: [PATCH] [angkor] Introduce README.md (#3331) * [angkor] Introduce README.md This commit will add README file for `angkor` Signed-off-by: Seok NamKoong * remove line * Add words * Fix headlines --- contrib/angkor/README.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 contrib/angkor/README.md diff --git a/contrib/angkor/README.md b/contrib/angkor/README.md new file mode 100644 index 0000000..c842fc1 --- /dev/null +++ b/contrib/angkor/README.md @@ -0,0 +1,51 @@ +# angkor + +## Purpose + +_angkor_ is a `nncc` core library + +## How to use + +_angkor_ implements abstract data type(ADT) for feature, kernel, tensor. +There are layout, shape information and enumerator and so on. + +To use some of these things, just insert `include`! +```cpp +#include +#include +#include +``` + +## Example + +- `contrib/coco/core/CMakeLists.txt` + +```cmake +target_link_libraries(coco_core PUBLIC angkor) +``` + +- `contrib/coco/core/src/IR/Arg.cpp` + +```cpp +#include "coco/IR/Arg.h" + +#include +#include + +namespace +{ +const nncc::core::ADT::tensor::LexicalLayout l; +} + +namespace coco +{ + +Arg::Arg(const nncc::core::ADT::tensor::Shape &shape) : _shape{shape}, _bag{nullptr} +{ + _map.resize(nncc::core::ADT::tensor::num_elements(shape)); +} + +// .... + +} +``` -- 2.7.4