【问题标题】:Distributed tensorflow fails with "BUILD file not found on package"分布式 tensorflow 失败并显示“在包中找不到 BUILD 文件”
【发布时间】:2016-03-17 20:01:53
【问题描述】:

当尝试使用以下方法构建 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 中未提及)?

【问题讨论】:

    标签: tensorflow


    【解决方案1】:

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

    $ git submodule update --init --recursive
    

    (还有很多其他方法可以做同样的事情:请参阅this question 以获得一些建议。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-10
      相关资源
      最近更新 更多