[Non-ACR][MachineLearning]Change use of GetDimension 52/293952/2
authorYelin Jeong <yelini.jeong@samsung.com>
Fri, 9 Jun 2023 05:13:31 +0000 (14:13 +0900)
committerYelin Jeong <yelini.jeong@samsung.com>
Fri, 9 Jun 2023 05:28:49 +0000 (14:28 +0900)
- csharp api will be changed not to set unnecessary
value 1 in Dimension array
- The actual dimension of test_model is '1',
comparing padded value of dimensions is unnecessary

Change-Id: I140e67b73198a4b68bb1b6554590dc656e308d7b
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSSingleShot.cs

index 0648f2a..735270d 100755 (executable)
@@ -412,8 +412,8 @@ namespace Tizen.MachineLearning.Inference.Tests {
                 Assert.IsInstanceOf<TensorsInfo>(in_res, "Should return TensorsInfo instance");
                 Assert.IsNotNull(in_res, "Failed to create tensorsInfo instance");
 
-                var dim = string.Join(":", in_res.GetDimension(0));
-                Assert.IsTrue(string.Equals(dim, "1:1:1:1"), "The type of TensorsInfo is different from the origin");
+                var dim = in_res.GetDimension(0);
+                Assert.IsTrue(dim[0] == 1, "The type of TensorsInfo is different from the origin");
 
                 in_res.Dispose();
                 single.Dispose();