[API] Add API to get model id of request and handle empty weight
authorDongju Chae <dongju.chae@samsung.com>
Wed, 23 Jun 2021 06:57:29 +0000 (15:57 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Wed, 23 Jun 2021 09:36:08 +0000 (18:36 +0900)
commitd263af408ae7895f9f35501154977b8c39842118
tree93965caf6d9b54305bda9e6d2af33a877b266197
parent18f7713a75a5db1b2e52278fafd39cd3f8938a3f
[API] Add API to get model id of request and handle empty weight

This patch adds APi to get model id of request and handle the case
that model contains empty weight data.

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