0

I just installed gpu based tensorflow, (from these instructions) and ran the test code, but, I am confussed by the output. Where I think it should say: "Hello, Tensorflow" it says "b'Hello Tensorflow".

what does it mean? why is there the extra characters?

Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "copyright", "credits" or "license()" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
b'Hello, TensorFlow!'
j0h
  • 1,675
  • 6
  • 27
  • 50

0 Answers0