我跟随本教程安装支持GPU的TensorFlow,它与CUDA计算功能3.0兼容.
我安装了Java 8、Bazel0.1.0、TensorFlow 0.6.0,并将配置更改为在CUDA计算功能3.0上运行。到目前为止一切都很好。
但当我输入这个命令:
$HOME/bin/bazel build -c opt --config=cuda //tensorflow/cc:教程_示例_训练器
我看到这个输出:
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有什么建议吗?
发布于 2016-03-24 13:21:54
通过运行以下命令解决了这个问题:
$ git克隆-b 0.6.0-Recurse-子模块https://github.com/tensorflow/tensorflow.git
我收到的错误消息被记录为这里。拉出所有子模块解决了问题。
发布于 2016-03-28 13:49:53
我对上面的命令有问题,-recurse-子模块不存在
试试这个:
$ git克隆-递归git@github.com:tensorflow/tensorflow.git
https://stackoverflow.com/questions/36200043
复制相似问题