在张量流中使用不同的量化模式?

2024-09-30 06:17:16 发布

您现在位置:Python中文网/ 问答频道 /正文

TF在其量化脚本上的documentation似乎只包括--mode=eightbit(2017年7月24日)。在

每种模式都用于什么?i、 如量子化所示_图形.py(四舍五入、量化、权重、权重四舍五入):

flags.DEFINE_string("mode", "round",
                """What transformation to apply (round, quantize,"""
                """ eightbit, weights, or weights_rounded).""")

作为一个补充问题,我试图跟踪脚本并注意到eightbit实际上并没有调用任何计算最小/最大值的函数(例如quantize_weight_eightbit)。那么mode=eightbit到底在做什么呢?在


Tags: py脚本图形stringmodetfdocumentation模式

热门问题