We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6bd9ef commit a1c8decCopy full SHA for a1c8dec
1 file changed
test/TensorFlowNET.UnitTest/SessionTest.cs
@@ -126,8 +126,8 @@ public void Eval_LargeString_Scalar()
126
var c = tf.strings.substr(a, 0, size - 5000);
127
using (var sess = tf.Session())
128
{
129
- var result = (string) c.eval(sess);
130
- Console.WriteLine((string) result);
+ var result = UTF8Encoding.UTF8.GetString((byte[])c.eval(sess));
+ Console.WriteLine(result);
131
result.Should().HaveLength(size - 5000).And.ContainAll("a");
132
}
133
0 commit comments