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
  • 7,770
  • 8
  • 48
  • 73
ykesh
  • 1,179
  • 2
  • 17
  • 33

0 Answers0