Article From:

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(
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.

Link of this Article: TensorFlow introduction — hello

Leave a Reply

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