It states at:
https://www.tensorflow.org/install/install_windows
that the output should be:
Hello, TensorFlow!
but when I run the same 4 lines I get:
b'Hello, TensorFlow!'
noting the additional '' and letter b.
It states at:
https://www.tensorflow.org/install/install_windows
that the output should be:
Hello, TensorFlow!
but when I run the same 4 lines I get:
b'Hello, TensorFlow!'
noting the additional '' and letter b.
The additional '' and letter b appear because it is a byte string (and not a unicode string). If you decode it by running
print(sess.run(hello).decode())
You will get
Hello, TensorFlow!