Article From:https://www.cnblogs.com/jourluohua/p/9125878.html

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.

Similar Posts:

Link of this Article: TensorFlow introduction — hello

Leave a Reply

Your email address will not be published. Required fields are marked *