From: Yelin Jeong Date: Tue, 5 Dec 2023 08:04:19 +0000 (+0900) Subject: [NoACR][MachineLearning.Inference] Fix bug using wrong handle X-Git-Tag: submit/tizen/20231205.150945~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7facd0f8478f131172f55134231a21d4babf4d43;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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 --- 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);