aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Dan Smilkov <dsmilkov@gmail.com>2016-03-28 10:14:38 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-03-28 11:33:26 -0700
commite57fc75f4ffa4017db479c2f3c81ae0e8b5190f3 (patch)
tree5df66658c8b981899b9d398713712c0458706591 /tools
parentd95fa1bb158a6a23344ec5319d97d38da4ae5bdd (diff)
Bring back fast_cpp_protos bazel configuration and remove 64MB limit of protobufs. This speeds-up graph serialization by ~15x for users building TensorFlow from source.
Note that you can now install a faster pip binary for protobuf using the instructions in https://github.com/tensorflow/tensorflow/commit/8ac009728db931ef3119a337bd23250c89bc7efe This only affects building and running from within the bazel environment. Change: 118374862
Diffstat (limited to 'tools')
-rw-r--r--tools/bazel.rc.template2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bazel.rc.template b/tools/bazel.rc.template
index d2b1b0b25a..e90ec790fd 100644
--- a/tools/bazel.rc.template
+++ b/tools/bazel.rc.template
@@ -3,6 +3,8 @@ build:cuda --define=using_cuda=true
build --force_python=py$PYTHON_MAJOR_VERSION
build --python$PYTHON_MAJOR_VERSION_path=$PYTHON_BINARY
+build --define=use_fast_cpp_protos=true
+build --define=allow_oversize_protos=true
build --spawn_strategy=standalone
test --spawn_strategy=standalone