分布式张量流失败,并显示“在包上找不到 BUILD 文件”

2024-01-19

当尝试使用以下命令构建 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 子模块问题——并且会影响构建any来自源代码的 TensorFlow 的一部分。要恢复,请在 git 存储库中运行以下命令:

$ git submodule update --init --recursive

(还有很多其他方法可以做同样的事情:参见这个问题 https://stackoverflow.com/questions/1030169/easy-way-pull-latest-of-all-submodules寻求一些建议。)

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

分布式张量流失败,并显示“在包上找不到 BUILD 文件” 的相关文章

随机推荐