简体   繁体   English

如何不使用bazel量化我的tensorflow模型?

[英]How to quantize my tensorflow model without using bazel ?

I am trying to quantize my tensorflow trained graph (.pb file) and following these instructions in the TF tutorial . 我正在尝试量化受tensorflow训练的图(.pb文件),并按照TF教程中的这些说明进行操作。 But they are using bezel commands to build it . 但是他们正在使用挡板命令来构建它。 Is there any way where I can run this as a normal python script ? 有什么办法可以将其作为普通的python脚本运行?

It's designed to be run through Bazel. 它旨在通过Bazel运行。 It's possible you could manually compile all the protos, add __init__.py files in the directories, and create any generated files, but it'll probably be a lot easier to just download the Bazel binary for your system. 您可以手动编译所有原型,在目录中添加__init__.py文件,并创建任何生成的文件,但为系统下载Bazel二进制文件可能会容易得多

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

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