From 4ff53c93be5b2cfd73ac31fed6c117d07e6f973a Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Tue, 30 Jul 2019 21:08:21 -0500 Subject: [PATCH] string workround. need NDArray GetNDArrays(NDArray) to implemented. --- test/TensorFlowNET.Examples/HelloWorld.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/TensorFlowNET.Examples/HelloWorld.cs b/test/TensorFlowNET.Examples/HelloWorld.cs index ca5e669b..e9c91336 100644 --- a/test/TensorFlowNET.Examples/HelloWorld.cs +++ b/test/TensorFlowNET.Examples/HelloWorld.cs @@ -29,9 +29,8 @@ namespace TensorFlowNET.Examples { // Run the op var result = sess.run(hello); - string result_string = string.Join("", result.GetData()); - Console.WriteLine(result_string); - return result_string.Equals(str); + Console.WriteLine(result.ToString()); + return result.ToString().Equals(str); }); }