分布式张量流失败 "BUILD file not found on package"
Distributed tensorflow fails with "BUILD file not found on package"
尝试在 core/distributed_runtime 模块中构建时使用:
$ bazel build -c opt
//tensorflow/core/distributed_runtime/rpc:grpc_tensorflow_server
我们收到以下错误:
ERROR: error loading package 'tensorflow/core/distributed_runtime/rpc':
Extension file not found. Unable to load package for
'//google/protobuf:protobuf.bzl': BUILD file not found on package path.
INFO: Elapsed time: 0.097s
是否需要额外的步骤(README.md 中未提及)?
这听起来像是一个 git 子模块问题——它会影响从源代码构建 TensorFlow 的 any 部分。要恢复,运行 在您的 git 存储库中执行以下命令:
$ git submodule update --init --recursive
(有很多其他方法可以做同样的事情:请参阅 this question 以获得一些建议。)
尝试在 core/distributed_runtime 模块中构建时使用:
$ bazel build -c opt
//tensorflow/core/distributed_runtime/rpc:grpc_tensorflow_server
我们收到以下错误:
ERROR: error loading package 'tensorflow/core/distributed_runtime/rpc':
Extension file not found. Unable to load package for
'//google/protobuf:protobuf.bzl': BUILD file not found on package path.
INFO: Elapsed time: 0.097s
是否需要额外的步骤(README.md 中未提及)?
这听起来像是一个 git 子模块问题——它会影响从源代码构建 TensorFlow 的 any 部分。要恢复,运行 在您的 git 存储库中执行以下命令:
$ git submodule update --init --recursive
(有很多其他方法可以做同样的事情:请参阅 this question 以获得一些建议。)