[libnpuhost] Revisiting alloc/dealloc APIs
authorDongju Chae <dongju.chae@samsung.com>
Thu, 23 Jul 2020 01:57:45 +0000 (10:57 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Mon, 27 Jul 2020 02:30:02 +0000 (11:30 +0900)
commit705caf177b8babfd3e4be6c5264fb333354727ce
tree4edc3d5eec168aa282aac4dd5942143e9dc43d4f
parent65ce3e64d94747eecdca1ae57adf234e21043d94
[libnpuhost] Revisiting alloc/dealloc APIs

This patch revisits alloc/dealloc APIs in libnpuhost.
It adds generic alloc/dealloc functions for input/model aliases,
and alloc() for multi-tensors no longer forces contiguous memory space.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
include/host/libnpuhost.h
src/core/ne-handler.cc
tests/unittests/ne_core_handler_test.cc