分布式 tensorflow 失败,“包中未找到 BUILD 文件" [英] Distributed tensorflow fails with "BUILD file not found on package"

查看:48
本文介绍了分布式 tensorflow 失败,“包中未找到 BUILD 文件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用以下方法构建 core/distributed_runtime 模块时:

When attempting to build in the core/distributed_runtime module using:

$ 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 中没有提到)?

Are there additional steps required (and not mentioned in the README.md) ?

推荐答案

这听起来像是 git 子模块问题—它会影响从源代码构建 TensorFlow 的任何部分.要恢复,请在您的 git 存储库中运行以下命令:

This sounds like a git submodule issue—and it would affect building any part of TensorFlow from source. To recover, run the following command in your git repository:

$ git submodule update --init --recursive

(有很多其他方法可以做同样的事情:见这个问题 一些建议.)

(There are many other ways to do the same thing: see this question for some suggestions.)

这篇关于分布式 tensorflow 失败,“包中未找到 BUILD 文件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆