Skip to content

Instantly share code, notes, and snippets.

@damienpontifex
Created November 1, 2017 00:39
Show Gist options
  • Save damienpontifex/835e6f887d058a54d36eac8adb3158aa to your computer and use it in GitHub Desktop.
Save damienpontifex/835e6f887d058a54d36eac8adb3158aa to your computer and use it in GitHub Desktop.
# In local tensorflow repo
# git clone https://github.com/tensorflow/tensorflow.git
# cd tensorflow
TAG=v1.4.0-rc1
git pull
git checkout "$TAG"
./configure # Enter for all defaults
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.2 -k //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
pip3 install pip install /tmp/tensorflow_pkg/tensorflow-<blah>.whl # Tab complete <blah> with appropriate build number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment