Tensorflow using Python programming -


i'm newbie in python programming specially in tensorflow concept, installed tensorflow in pc, when make simple program execute "hello tensorflow" there annoyed me, out put appear " b' " picture. error image , source code this:

import tensorflow tf hello = tf.constant("hello, tensorflow!") sess = tf.session() print(sess.run(hello)) 

anybody may me solve problem please? i'm sorry bad english anyway. thanks

i guess using python 3. in python 3 strings prefixed b' called byte strings. in order convert them normal strings have call decode method.

import tensorflow tf hello = tf.constant("hello, tensorflow!") sess = tf.session() print(sess.run(hello).decode("utf-8")) 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -