[core.ADT] Add tensor::Layout interface (#244)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 30 May 2018 23:17:48 +0000 (08:17 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 30 May 2018 23:17:48 +0000 (08:17 +0900)
commit15c9f6213b39c93cd69f2f15de4982d689234cb6
treeaa5b37fab6ad1ed0d5e6bb597dd29e711bfb8251
parent2c23c20fdbf0152373ac46fdd17b58715359783b
[core.ADT] Add tensor::Layout interface (#244)

This commit adds tensor::Layout interface, and tensor::LexicalLayout class
which implements Layout interfaces.

Layout interface provides 'offset' method which returns an offset of each element
in flat array, and LexicalLayout assigns this offset following lexicographical order.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
libs/core/include/nncc/core/ADT/tensor/Layout.h [new file with mode: 0644]
libs/core/include/nncc/core/ADT/tensor/LexicalLayout.h [new file with mode: 0644]
libs/core/src/ADT/tensor/LexicalLayout.cpp [new file with mode: 0644]
libs/core/src/ADT/tensor/LexicalLayout.test.cpp [new file with mode: 0644]