0

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.

Graham Seed
  • 742
  • 3
  • 10
  • 24
  • Possible duplicate of [Extra Character: TensorFlow HelloWorld to Verify Correct Installation](https://stackoverflow.com/questions/43508491/extra-character-tensorflow-helloworld-to-verify-correct-installation) – P-Gn Jun 20 '17 at 21:47

1 Answers1

1

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!
Miriam Farber
  • 18,986
  • 14
  • 61
  • 76