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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -