From: Yelin Jeong Date: Mon, 22 Jul 2024 07:59:51 +0000 (+0900) Subject: [NoACR][MachineLearning.Inference] Change internal tensor size limit X-Git-Tag: submit/tizen/20240726.150846~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a223952766b8e19d652a8de8ca92dfe8b0ee91e5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NoACR][MachineLearning.Inference] Change internal tensor size limit This patch changes internal tensor size limit in MachineLearning.Inference. Tizen Native ML api's max tensor size has been changed to 256. Signed-off-by: Yelin Jeong --- diff --git a/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs b/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs index 951ca33..ab65523 100755 --- a/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs +++ b/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs @@ -272,7 +272,7 @@ namespace Tizen.MachineLearning.Inference /// /// The maximum number of other/tensor instances that other/tensors may have. /// - internal const int SizeLimit = 16; + internal const int SizeLimit = 256; /// /// Unknown Type of Tensor information. It is internally used for error check. diff --git a/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs b/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs index 094c044..c9927c8 100755 --- a/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs +++ b/src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs @@ -60,10 +60,10 @@ namespace Tizen.MachineLearning.Inference } /// - /// Add a Tensor information to the TensorsInfo instance. Note that we support up to 16 tensors in TensorsInfo. + /// Add a Tensor information to the TensorsInfo instance. Note that we support up to 256 tensors in TensorsInfo. /// /// Data element type of Tensor. - /// Dimension of Tensor. Note that we support up to 4th ranks. + /// Dimension of Tensor. Note that we support up to 16th ranks. /// http://tizen.org/feature/machine_learning.inference /// Thrown when the number of Tensor already exceeds the size limits (i.e. Tensor.SizeLimit) /// Thrown when the method failed due to an invalid parameter.