-
Create a Python virtualenv and activate it
virtualenv --distribute --no-site-packages venv source venv/bin/activate
-
Install TensorFlow
pip install --upgrade six pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0-py2-none-any.whl
-
Configure it to use all cores
NUM_CORES = 8 sess = tf.Session( config=tf.ConfigProto( inter_op_parallelism_threads=NUM_CORES, intra_op_parallelism_threads=NUM_CORES ) )
-
Test the installation
python -m tensorflow.models.image.mnist.convolutional
- If you want to assign probabilities to an object being one of several different things, softmax is the thing to do.