|
|
|
@@ -29,7 +29,8 @@ namespace Tensorflow.UnitTest.TF_API |
|
|
|
var a = tf.constant(new NDArray(new[, ,] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } } })); |
|
|
|
var b = tf.constant(new[, ,] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } } }); |
|
|
|
//Test Result : a is OK , and b is error . |
|
|
|
|
|
|
|
Assert.IsTrue(Enumerable.SequenceEqual(new[] { 2, 3, 1 }, a.shape)); |
|
|
|
Assert.IsTrue(Enumerable.SequenceEqual(new[] { 2, 3, 1 }, b.shape)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |