简体   繁体   English

TensorFlow和C ++中的Bazel

[英]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.

相关问题 使用TensorFlow编译C ++代码而不使用Bazel - Compiling C++ code with TensorFlow without Bazel Bazel 无法使用 tensorflow 作为依赖项构建 C++ 项目 - Failing to Bazel build C++ project with tensorflow as a dependency 如何使用 TensorFlow C++ api 作为共享库与 bazel? - How to use TensorFlow C++ api as a shared library with bazel? 如何使用Bazel的自定义工具链构建Tensorflow C ++代码? - How to build tensorflow c++ code use a custom toolchain of bazel? 使用TensorFlow训练模型和现有C ++程序(而非Bazel)进行预测 - Making predictions with TensorFlow trained model with existing C++ program (not Bazel) 使用Bazel(Windows)=>使用Tensorflow C ++ API来构建Tensorflow - Issue building Tensorflow using Bazel (Windows) => to use Tensorflow C++ API 如何使用安装在Python站点包中的TensorFlow配置Bazel以构建C ++应用 - How to configure bazel to build C++ app using tensorflow installed in python site-packages 自我编写的Tensorflow C ++代码的Bazel测试正在通过每个测试,而与预期值无关 - Bazel test for self written tensorflow c++ code is passing every test regardless of expected value 针对 TensorFlow C++ API 构建的 Bazel 目标不执行工厂注册功能 - Bazel targets built against TensorFlow C++ API don't execute factory registration functions 使用bazel构建TensorFlow C ++调用模型时,.so文件不起作用 - When using bazel to build TensorFlow C++ call model, .so file doesn't work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM