From: Yelin Jeong Date: Fri, 9 Jun 2023 05:13:31 +0000 (+0900) Subject: [Non-ACR][MachineLearning]Change use of GetDimension X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebc65bc66e102ca240eac4bb6ab4c2a1b0d5eb68;p=test%2Ftct%2Fcsharp%2Fapi.git [Non-ACR][MachineLearning]Change use of GetDimension - 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 --- diff --git a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSSingleShot.cs b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSSingleShot.cs index 0648f2a..735270d 100755 --- a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSSingleShot.cs +++ b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSSingleShot.cs @@ -412,8 +412,8 @@ namespace Tizen.MachineLearning.Inference.Tests { Assert.IsInstanceOf(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();