我正在关注this tutorial以安装与CUDA Compute Capability 3.0兼容的支持GPU的TensorFlow。
我安装了Java-JDK8,Bazel 0.1.0,TensorFlow 0.6.0,并将配置更改为在CUDA Compute Capability 3.0上运行。到目前为止一切都很好。
但是当我输入这个命令时:
$ HOME / bin / bazel build -c opt --config = cuda // tensorflow /立方厘米:tutorials_example_trainer
我看到了这个输出:
Extracting Bazel installation...
.....
ERROR: /home/me/tensorflow/tensorflow/core/BUILD:1: Extension file not found: 'google/protobuf/protobuf.bzl'.
ERROR: /home/me/tensorflow/tensorflow/cc/BUILD:65:1: error loading package 'tensorflow/core': Extension file not found: 'google/protobuf/protobuf.bzl' and referenced by '//tensorflow/cc:tutorials_example_trainer'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 1.006s
有什么建议吗?
答案 0 :(得分:1)
运行此命令可以解决问题:
$ git clone -b 0.6.0 -recurse-submodules https://github.com/tensorflow/tensorflow.git
我收到的错误消息记录在here。拉动所有子模块可以解决问题。
答案 1 :(得分:0)
我遇到上述命令的问题,-recurse-submodules不存在
试试这个:
$ git clone --recursive git@github.com: tensorflow / tensorflow.git