[英]Bazel in TensorFlow and C++
I'm trying to build a project with Tensorflow in C++, have installed already TensorFlow from source with Bazel and now I'm following the Tensorflow C++ API. 我正在尝试使用C ++中的Tensorflow构建项目,已经使用Bazel从源代码安装了TensorFlow,现在我正在使用Tensorflow C ++ API。 But to run the first mini-program of the documentation (C++ API Guide: https://www.tensorflow.org/api_guides/cc/guide ) takes about an hour. 但是要运行该文档的第一个小程序(C ++ API指南: https : //www.tensorflow.org/api_guides/cc/guide )大约需要一个小时。 Is that normal? 那是正常的吗?
What platform are you building on? 您正在建立什么平台? What version of bazel? 什么版本的bazel? Sandboxing got much faster recently, but you can try disabling it. 最近, 沙箱的运行速度更快,但是您可以尝试禁用它。
Also note that incremental builds with bazel are faster (and correct :). 另请注意,使用bazel进行增量构建速度更快(正确:)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.