Thursday, September 8, 2022

Test your TensorFlow installation

 

Test your TensorFlow installation



Learn the basics of machine learning with TensorFlow's guided curriculum and resources. Build machine learning into your apps and deploy everywhere with TensorFlow by Google. Free and open source. Join the TF community. Deep learning framework.

Open a Python terminal and enter the following lines of code:

>>> import tensorflow as tf >>> hello = tf.constant("hello TensorFlow!") >>> sess=tf.Session() 

To verify your installation just type:

>>> print sess.run(hello)

If the installation is okay, you'll see the following output:

Hello TensorFlow!


import tensorflow as tf
msg = tf.constant('Hello, TensorFlow!')
tf.print(msg)

No comments:

Post a Comment