Skip to content

Instantly share code, notes, and snippets.

@therako
Created February 25, 2018 09:52
Show Gist options
  • Save therako/d7316b4ffe3c634696fde6c141727fd7 to your computer and use it in GitHub Desktop.
Save therako/d7316b4ffe3c634696fde6c141727fd7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# configure tensorflow options
printf "/usr/bin/python3\n\ny\ny\nn\nn\nn\nn\nn\nn\nn\n" | ./configure
# Build tools
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2 -k //tensorflow/tools/pip_package:build_pip_package
# Generate python whl package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /code/tensorflow_pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment