- 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>
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();