[Model/Tops] Check the TOPS which TRIV2 device supports
authorDongju Chae <dongju.chae@samsung.com>
Mon, 9 Nov 2020 09:08:46 +0000 (18:08 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Thu, 12 Nov 2020 02:37:39 +0000 (11:37 +0900)
commit0d2ea9d1fb94559542092cf678a4c32a03e40092
tree4a5b8a6f38a90518e7600a71a06c61d290b86de8
parent86ac747a38c9d2fc2a00af3d8c729acb6dc302f4
[Model/Tops] Check the TOPS which TRIV2 device supports

This patch adds the routine to check the TOPS device supports.
It compares the device's TOPS and model-described TOPS.
For backward-compatability, if TOPS is zero, it's regarded as "don't care"

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/ne-handler.cc
src/core/ne-model.h
src/core/npu/NPUdrvAPI.h
src/core/npu/NPUdrvAPI_emul.cc
src/core/npu/NPUdrvAPI_triv.cc
src/core/npu/NPUdrvAPI_triv2.cc
tests/unittests/ne_core_npu_test.cc