The installation of TensorFlow is mentioned in the last section.
Create a new Python file, enter
1 import tensorflow as tf 2 hello = tf .constant (’Hello, TensorFlow!’) 3 sess = tf. Session() 4 print(sess.run(hello)) 5 a= tf.constant(lO) 6 b = tf.constant(30) 7 print (sess. run (a + b) )
Run, the code is very simple. No mistake is half done. The correct result is believed to be known to all.