Skip to content

Instantly share code, notes, and snippets.

View PidgeyBE's full-sized avatar

PidgeyBE

View GitHub Profile
@hiteshjasani
hiteshjasani / tensorflow_build.sh
Last active October 15, 2020 08:26
Building tensorflow using Bazel with cpu optimizations
# Install bazel
# download tensorflow src
# Checkout tagged version
# ./configure
# Compile
bazel build -c opt --copt=-march=native //tensorflow/tools/pip_package:build_pip_package
#bazel build -c opt --copt=-mavx --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
# Build the PIP package