Skip to content

Commit 4ff53c9

Browse files
committed
string workround. need NDArray GetNDArrays(NDArray) to implemented.
1 parent 4ca080e commit 4ff53c9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/TensorFlowNET.Examples/HelloWorld.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ of the Constant op. */
2929
{
3030
// Run the op
3131
var result = sess.run(hello);
32-
string result_string = string.Join("", result.GetData<char>());
33-
Console.WriteLine(result_string);
34-
return result_string.Equals(str);
32+
Console.WriteLine(result.ToString());
33+
return result.ToString().Equals(str);
3534
});
3635
}
3736

0 commit comments

Comments
 (0)