Browse Source

string workround. need NDArray GetNDArrays(NDArray) to implemented.

tags/v0.12
Oceania2018 6 years ago
parent
commit
4ff53c93be
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      test/TensorFlowNET.Examples/HelloWorld.cs

+ 2
- 3
test/TensorFlowNET.Examples/HelloWorld.cs View File

@@ -29,9 +29,8 @@ namespace TensorFlowNET.Examples
{
// Run the op
var result = sess.run(hello);
string result_string = string.Join("", result.GetData<char>());
Console.WriteLine(result_string);
return result_string.Equals(str);
Console.WriteLine(result.ToString());
return result.ToString().Equals(str);
});
}



Loading…
Cancel
Save