我正在关注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 / cc: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
有什么建议?
2 回答
我上面的命令有问题,-recurse-submodules不存在
试试这个:
$ git clone --recursive git@github.com: tensorflow / tensorflow.git
运行此命令可以解决此问题:
我收到的错误消息记录在here中 . 拉动所有子模块可以解决问题 .