From 8952e3f06b468aa3b9d8e3be418c005e368ec7f2 Mon Sep 17 00:00:00 2001 From: Yelin Jeong Date: Tue, 5 Dec 2023 17:04:19 +0900 Subject: [PATCH] [NoACR][MachineLearning.Inference] Fix bug using wrong handle This patch fixes the bug which use wrong handle. GetTensorsCount should use TensorsInfo handle instead of TensorsData handle. Signed-off-by: Yelin Jeong Signed-off-by: Yongjoo Ahn --- .../Tizen.MachineLearning.Inference/TensorsData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsData.cs b/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsData.cs index 330aacca5..844015533 100755 --- a/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsData.cs +++ b/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsData.cs @@ -50,7 +50,7 @@ namespace Tizen.MachineLearning.Inference /* 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); -- 2.34.1