From e57fc75f4ffa4017db479c2f3c81ae0e8b5190f3 Mon Sep 17 00:00:00 2001 From: Dan Smilkov Date: Mon, 28 Mar 2016 10:14:38 -0800 Subject: 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 --- tools/bazel.rc.template | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') 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 -- cgit v1.2.3