Skip to content

Commit 0c19f5f

Browse files
committed
tensor init bug test
1 parent 4025463 commit 0c19f5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public void InitTensorTest()
2929
var a = tf.constant(new NDArray(new[, ,] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } } }));
3030
var b = tf.constant(new[, ,] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } } });
3131
//Test Result : a is OK , and b is error .
32-
32+
Assert.IsTrue(Enumerable.SequenceEqual(new[] { 2, 3, 1 }, a.shape));
33+
Assert.IsTrue(Enumerable.SequenceEqual(new[] { 2, 3, 1 }, b.shape));
3334
}
3435
}
3536
}

0 commit comments

Comments
 (0)