【问题标题】:Tensorflow Build errorTensorFlow 构建错误
【发布时间】:2017-03-09 12:07:11
【问题描述】:

嘿,我是 Tenserflow 的新手,我从 git (https://github.com/tensorflow/serving) 获得了 tenserflow 代码,当我尝试使用文档中的步骤构建它时,我收到了这个错误:

错误: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: 加载包“”时出错:找不到扩展文件。无法加载 '@org_tensorflow//tensorflow:workspace.bzl' 的包:构建文件 在包路径上找不到。信息:经过时间:0.081s

【问题讨论】:

  • 您确定要Serving而不是Tensorflow吗? github.com/tensorflow/tensorflow
  • 是的,我正在研究一个神经网络,我正在尝试为它服务,我正在使用文档中的教程来学习如何做到这一点。

标签: python machine-learning tensorflow bazel tensorflow-serving


【解决方案1】:

这可能是因为您没有递归克隆 (git clone --recurse-submodules https://github.com/tensorflow/serving),因此 TensorFlow 没有被克隆为子模块,Bazel 无法找到 TensorFlow 本身。

https://github.com/tensorflow/serving/blob/master/tensorflow_serving/g3doc/setup.md#clone-the-tensorflow-serving-repository

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-18
    • 2018-04-18
    • 2016-12-29
    • 1970-01-01
    • 1970-01-01
    • 2018-10-25
    相关资源
    最近更新 更多