我想用 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/