[NoACR][MachineLearning.Inference] Change internal tensor size limit
authorYelin Jeong <yelini.jeong@samsung.com>
Mon, 22 Jul 2024 07:59:51 +0000 (16:59 +0900)
committerSangjung Woo <again4you@gmail.com>
Fri, 26 Jul 2024 05:51:25 +0000 (14:51 +0900)
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 <yelini.jeong@samsung.com>
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs

index 951ca33..ab65523 100755 (executable)
@@ -272,7 +272,7 @@ namespace Tizen.MachineLearning.Inference
         /// <summary>
         /// The maximum number of other/tensor instances that other/tensors may have.
         /// </summary>
-        internal const int SizeLimit = 16;
+        internal const int SizeLimit = 256;
 
         /// <summary>
         /// Unknown Type of Tensor information. It is internally used for error check.
index 094c044..c9927c8 100755 (executable)
@@ -60,10 +60,10 @@ namespace Tizen.MachineLearning.Inference
         }
 
         /// <summary>
-        /// 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.
         /// </summary>
         /// <param name="type">Data element type of Tensor.</param>
-        /// <param name="dimension">Dimension of Tensor. Note that we support up to 4th ranks.</param>
+        /// <param name="dimension">Dimension of Tensor. Note that we support up to 16th ranks.</param>
         /// <feature>http://tizen.org/feature/machine_learning.inference</feature>
         /// <exception cref="IndexOutOfRangeException">Thrown when the number of Tensor already exceeds the size limits (i.e. Tensor.SizeLimit)</exception>
         /// <exception cref="ArgumentException">Thrown when the method failed due to an invalid parameter.</exception>