[Fix] Make the weight segment instead of reusing model binary
authorDongju Chae <dongju.chae@samsung.com>
Thu, 21 May 2020 10:42:20 +0000 (19:42 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Fri, 22 May 2020 06:26:42 +0000 (15:26 +0900)
commiteec3ae0e9045860550294abbd00fa1db6062b2f1
tree2fc2125fcf95dd177d02f3e1fcfc57d210c317a6
parentd26861959c606278a06e27f4de874b8713d73317
[Fix] Make the weight segment instead of reusing model binary

This patch makes an additional weight segment instead of reusing model binary.
But, in this case, we cannot support model binaries with BUFFER_DMABUF.

Also, it removes uncessary weight data memcpy.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
15 files changed:
packaging/npu-engine.spec
src/core/comm/CommPlugin.h
src/core/comm/plugin-comm-ip.cc
src/core/ne-handler.cc
src/core/ne-handler.h
src/core/ne-host-input-service.cc
src/core/ne-model.cc
src/core/ne-model.h
src/core/ne-scheduler.cc
src/core/ne-segment-table.cc
src/core/ne-segment-table.h
src/core/npu/NPUdrvAPI_emul.cc
tests/apptests/dmabuf_buffers.c
tests/apptests/meson.build
tests/unittests/ne_core_npu_test.cc