Skip to content

Commit 7b49bed

Browse files
authored
fix qat docs (PaddlePaddle#971)
1 parent fd13584 commit 7b49bed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/dygraph/quant/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ quant_config = {
4141

4242
- `'activation_preprocess_type'`:代表对量化模型激活值预处理的方法,目前支持PACT方法,如需使用可以改为'PACT';默认为None,代表不对激活值进行任何预处理。
4343

44-
- `weight_quantize_type`:代表模型权重的量化方式,可选的有['abs_max', 'moving_average_abs_max', 'channel_wise_abs_max'],默认为channel_wise_abs_max
44+
- `weight_quantize_type`:代表模型权重的量化方式,可选的有['abs_max', 'channel_wise_abs_max'],默认为channel_wise_abs_max
4545

46-
- `activation_quantize_type`:代表模型激活值的量化方式,可选的有['abs_max', 'moving_average_abs_max'],默认为moving_average_abs_max
46+
- `activation_quantize_type`:代表模型激活值的量化方式,可选的有['moving_average_abs_max'],默认为moving_average_abs_max
4747

4848
- `quantizable_layer_type`:代表量化OP的类型,目前支持Conv2D和Linear
4949

docs/zh_cn/api_cn/dygraph/quanter/qat.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ QAT
6363
# activation预处理方法,默认为None,代表不进行预处理`
6464
'activation_preprocess_type': None,
6565
66-
# weight量化方法, 默认为'channel_wise_abs_max', 此外还支持'channel_wise_abs_max'
66+
# weight量化方法, 默认为'channel_wise_abs_max', 此外还支持'abs_max'
6767
'weight_quantize_type': 'channel_wise_abs_max',
6868
69-
# activation量化方法, 默认为'moving_average_abs_max', 此外还支持'abs_max'
69+
# activation量化方法, 默认为'moving_average_abs_max'
7070
'activation_quantize_type': 'moving_average_abs_max',
7171
7272
# weight量化比特数, 默认为 8

0 commit comments

Comments
 (0)