How to test the Python and TensorFlow examples ?
Posted: Tue Aug 15, 2017 12:51 am
1. Download and install Python from here:
https://www.python.org/ftp/python/3.6.2 ... -3.6.2.exe
2. Install TensorFlow for Python:
From a cmd window execute this:
pip3 install --upgrade tensorflow
3. Create this file:
tf.py
4. from a cmd window execute:
python tf.py
You will get:
b'Hello world'
https://www.python.org/ftp/python/3.6.2 ... -3.6.2.exe
2. Install TensorFlow for Python:
From a cmd window execute this:
pip3 install --upgrade tensorflow
3. Create this file:
tf.py
Code: Select all
import tensorflow as tf
hello = tf.constant( "Hello world" )
session = tf.Session()
print( session.run( hello ) )
python tf.py
You will get:
b'Hello world'