0

After installing tensorflow and running the short program following instructions at tensorflow site

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

The expected result is Hello, TensorFlow! But I get b'Hello, TensorFlow!'

Note that the result differ in that b is prepended and ouput itself is in single qoutes.

Is there something that I am missing? I had earlier done the same example on Windows (Anaconda) and got same result. I installed only the CPU one.

Thanks.

sunside
  • 8,069
  • 9
  • 51
  • 74
ykesh
  • 1,199
  • 2
  • 21
  • 33

0 Answers0