You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use external repository rather than git submodule for protobuf dependency #1069
Currently, TensorFlow vendors its protobuf dependency using a Git submodule due to the hack that is required for protobuf Python support.
I have made a change (bazelbuild/bazel#702) to add an imports attribute to Bazel's Python rules, which allows us to add directories to the PYTHONPATH and thus allows us to remove the hack in protobuf.
I have a patch to remove the hack for protobuf Python support (see protocolbuffers/protobuf#1230). I am testing this change using a corresponding change to TensorFlow which removes the git submodule and includes the protobuf dependency using a Bazel external repository instead. Once my patch for protocolbuffers/protobuf#1230 has been submitted, I will send out my corresponding patch to TensorFlow for review.
I have made a change (bazelbuild/bazel#702 bazelbuild/bazel#702) to add an imports
attribute to Bazel's Python rules, which allows us to add directories to
the PYTHONPATH and thus allows us to remove the hack in protobuf.
I have a patch to remove the hack for protobuf Python support (see protocolbuffers/protobuf#1230protocolbuffers/protobuf#1230). I
am testing this change using a corresponding change to TensorFlow which
removes the git submodule and includes the protobuf dependency using a
Bazel external repository instead. Once my patch for protocolbuffers/protobuf#1230 protocolbuffers/protobuf#1230 has been submitted, I
will send out my corresponding patch to TensorFlow for review.
—
Reply to this email directly or view it on GitHub #1069.
Any update on this? The protobuf git submodule seems to have been removed sometime before v0.7.1 was tagged, but the new external repo doesn't appaear to be there yet.
Fresh pull:
$ git clone https://github.com/tensorflow/tensorflow.git
$ cd tensorflow
$ git checkout v0.7.1
$ ./configure
$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer
.......
ERROR: /share/sw/admin/sources/t/tensorflow/tensorflow/cc/BUILD:63:1: error loading package 'tensorflow/core': Extension file not found. Unable to load package for '//google/protobuf:protobuf.bzl': BUILD file not found on package path and referenced by '//tensorflow/cc:tutorials_example_trainer'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 1.988s
What's the current way of compiling Tensorflow from source?
@kcgthb - I don't think the protobuf Git submodule has been removed yet. Does running git submodule update --init work for you?
In any case, since my patch to protobuf has been merged (see protocolbuffers/protobuf#1233), I have just opened a PR to switch to an external repository in tensorflow (see #1289).
Activity
martinwicke commentedon Feb 12, 2016
This is exciting and if it all works I would love that change.
On Thu, Feb 11, 2016 at 19:34 David Z. Chen [email protected]
wrote:
Remove google/protobuf submodule and use external repository for
damienmg commentedon Feb 15, 2016
We need bazel 0.2 to have this work.
davidzchen commentedon Feb 16, 2016
This will also require the next protobuf release that contains protocolbuffers/protobuf#1233 as well.
Remove google/protobuf submodule and use external repository for
Remove google/protobuf submodule and use external repository for
kcgthb commentedon Feb 25, 2016
Any update on this? The protobuf git submodule seems to have been removed sometime before v0.7.1 was tagged, but the new external repo doesn't appaear to be there yet.
Fresh pull:
What's the current way of compiling Tensorflow from source?
Remove google/protobuf submodule and use external repository for
Use external repository for protobuf dependency.
davidzchen commentedon Feb 25, 2016
@kcgthb - I don't think the protobuf Git submodule has been removed yet. Does running
git submodule update --initwork for you?In any case, since my patch to protobuf has been merged (see protocolbuffers/protobuf#1233), I have just opened a PR to switch to an external repository in tensorflow (see #1289).
kcgthb commentedon Feb 25, 2016
Ah right, was missing
--recursivefor the inital clone, sorry for the noise.Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
6 remaining items
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency.
Use external repository for protobuf dependency. (#1289)
trinity77 commentedon Sep 10, 2016
Trigger Closed
Fix Bazel version check (tensorflow#1069)
Merge pull request tensorflow#1069 from ROCmSoftwarePlatform/r1.15-ro…