From 3e31304002242cadabcdb4b7fd5c577889c82f07 Mon Sep 17 00:00:00 2001 From: pepure Date: Wed, 1 Jul 2020 22:33:54 +0800 Subject: [PATCH] tensor init bug test --- test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs b/test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs index e8d959c4..0f4297bb 100644 --- a/test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs +++ b/test/TensorFlowNET.UnitTest/TF_API/TensorOperate.cs @@ -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)); } } }