bazel编译tensorflow 遇到的各种问题(tensorflow模型量化压缩)

1/tensorflow源码版本问题。一开始下载的源码中发现没有tensorflow/contrib/quantization/tools:quantize_graph, 然后下载了tensorflow1.7.1

2/bazel版本问题。bazel build tensorflow/tools/quantization:quantize_graph执行报错Config value opt is not defined in any .rc file,

网上查了下是版本问题,所以下载了bazel-0.10.1

3/command会提示Use --verbose_failures to see the command lines of failed build steps.,
直到加了–verbose_failures这个条命令:
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --verbose_failures
发现完整的报错
 



 

猜你喜欢

转载自blog.csdn.net/xingtianyao/article/details/89150917