Browse Source

tensor init bug test

tags/v0.20
pepure Haiping 5 years ago
parent
commit
3e31304002
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs

+ 2
- 1
test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs View File

@@ -29,7 +29,8 @@ namespace Tensorflow.UnitTest.TF_API
var a = tf.constant(new NDArray(new[, ,] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } } })); var a = tf.constant(new NDArray(new[, ,] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } } }));
var b = tf.constant(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 . //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));
} }
} }
} }

Loading…
Cancel
Save