我希望用Bazel构建tensorflow来使用c++中的编译后的libary。我在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中创建文件夹,但是文件夹是空的。我做错什么了??
bazel: 0.25.2 tensorflow: 1.14.0
发布于 2019-10-23 09:43:11
我想你正在输入一个不完整的命令,你应该键入:
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
这个
//tensorflow/tools/pip_package:build_pip_package
是构建文件的位置,如果您不包括它,bazel不知道要构建什么。包括在你的指挥下应该能解决问题。
https://stackoverflow.com/questions/58519449
复制相似问题