繁体   English   中英

用 Bazel 构建 Tensorflow

[英]Build Tensorflow with 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 不知道要构建什么。 在您的命令中包含它应该可以解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM