c++ - 使用 Bazel 构建 Tensorflow

标签 c++ tensorflow bazel

我想用 Bazel 构建 tensorflow 以使用 c++ 中的已编译库。我在 cmd 中运行以下命令。

C:\Users\Furkan\Desktop\tensorflow-1.14.0>bazel build --config=opt
WARNING: Usage: bazel build <options> <targets>.
Invoke `bazel help build` for full description of usage and options.
Your request is correct, but requested an empty set of targets. Nothing will be built.
INFO: Build option --define has changed, discarding analysis cache.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
INFO: Elapsed time: 0.124s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action

之后他们在 tensorflow 中创建了文件夹,但文件夹是空的。我做错了什么??

边框:0.25.2 tensorflow :1.14.0

最佳答案

我猜你输入的命令不完整,你应该输入:

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

//tensorflow/tools/pip_package:build_pip_package

是 BUILD 文件的位置,如果你不包含它 bazel 不知道要构建什么。将其包含在您的命令中应该可以解决问题。

关于c++ - 使用 Bazel 构建 Tensorflow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58519449/

相关文章:

c++ - 如何判断何时在 QButtonGroup 中单击 QPushButton

c++ - 在 C/C++ scanf() 扫描集中指定 ']' 字符

C# 编码 C++ 结构继承

c++ - C++ cout将 double 对齐为精度为2的 double

python - 如何在 TensorFlow 中读取 csv?

python - 从字符串列表创建 TfRecords 并在解码后在 tensorflow 中提供图形

bazel - 如何升级支持 Bazel 的库的 Maven 依赖项?

image-processing - 智能手机上的人体姿势估计/匹配

python - 我可以在没有 android 和没有 tensorboard 的情况下构建 tensorflow 吗?

c++ - 是否可以在 Visual Studio 中使用 Bazel 构建代码?