[ML][Common] Add support for creating TensorsInfo from native handle 96/251896/2
authorRafal Walczyna <r.walczyna@samsung.com>
Wed, 20 Jan 2021 11:49:15 +0000 (12:49 +0100)
committerRafal Walczyna <r.walczyna@samsung.com>
Wed, 20 Jan 2021 13:43:15 +0000 (13:43 +0000)
commit4010734b6b4ec9e26532c068adfbb8d24d92ab77
tree0fab30404df6893e73bd9229fedeec7375c0b630
parent0695849438bca542cc877a2b343d94c8d8bd7c88
[ML][Common] Add support for creating TensorsInfo from native handle

ACR: TWDAPI-273

Some of the ml native functions require not initialized handle.
TensorsInfo::CreateTensorsInfo() uses ml_tensors_info_create which allocates
memory for tensors info - but i.e. ml_single_get_input_info allocates memory
again without freeing old handle.

[Verification] Builts successfully, TensorsInfo.count tested in Chrome dev console.

Change-Id: I6b2e9c60dbed23a2d1962e68cc9408a8faecb383
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
src/ml/ml_tensors_info_manager.cc
src/ml/ml_tensors_info_manager.h