[core.ADT.tensor] Introduce Overlay/Buffer (#386)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 27 Jun 2018 06:36:39 +0000 (15:36 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 27 Jun 2018 06:36:39 +0000 (15:36 +0900)
commitd2e3f36d6ff87cc1e41cbbce33f9c2ea8b5e6d43
tree513cca56b9c55a816740d886d74ed8a09b80cf4a
parentea203998fd49c67090a9125e3b9ef16f9f0e748a
[core.ADT.tensor] Introduce Overlay/Buffer (#386)

This commit revises tensor::View<T> as an interface, and introduces two
implementations: Overlay<T> and Buffer<T>

Overlay<T> is a tensor view over externally allocated memory region, and
Buffer<T> is a tensor view which owns content memory (currently
implemented via vector)

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/nnkit/backends/caffe/Module.cpp
libs/core/include/nncc/core/ADT/tensor/Buffer.h [new file with mode: 0644]
libs/core/include/nncc/core/ADT/tensor/Overlay.h [new file with mode: 0644]
libs/core/include/nncc/core/ADT/tensor/View.h
libs/core/src/ADT/tensor/Buffer.test.cpp [new file with mode: 0644]
libs/core/src/ADT/tensor/Overlay.test.cpp [new file with mode: 0644]
libs/core/src/ADT/tensor/View.test.cpp [deleted file]