Browse Source

tensor init bug test

tags/v0.20
pepure Haiping 5 years ago
parent
commit
87c547a29c
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs

+ 7
- 0
test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs View File

@@ -23,6 +23,13 @@ namespace Tensorflow.UnitTest.TF_API
Assert.IsTrue(Enumerable.SequenceEqual(transpose_a.numpy().ToArray<int>(), b.numpy().ToArray<int>()));
}

[TestMethod]
public void InitTensorTest()
{
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 .

}
}
}

Loading…
Cancel
Save