This patch fixes the bug which use wrong handle.
GetTensorsCount should use TensorsInfo handle instead of TensorsData handle.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
/* Set count */
int count = 0;
- ret = Interop.Util.GetTensorsCount(_handle, out count);
+ ret = Interop.Util.GetTensorsCount(_tensorsInfo.GetTensorsInfoHandle(), out count);
NNStreamer.CheckException(ret, "unable to get the count of TensorsData");
_dataList = new ArrayList(count);