quantization.yaml 617 字节
Newer Older
1 2 3 4 5
version: 1.0
strategies:
    quantization_strategy:
        class: 'QuantizationStrategy'
        start_epoch: 0
6
        end_epoch: 20
7
        float_model_save_path: './output/float'
Z
Zhen Wang 已提交
8 9
        mobile_model_save_path: './output/mobile'
        int8_model_save_path: './output/int8'
10 11 12
        weight_bits: 8
        activation_bits: 8
        weight_quantize_type: 'abs_max'
Z
Zhen Wang 已提交
13
        activation_quantize_type: 'moving_average_abs_max'
14 15 16
        save_in_nodes: ['image']
        save_out_nodes: ['fc_0.tmp_2']
compressor:
17
    epoch: 21
18 19 20
    checkpoint_path: './checkpoints_quan/'
    strategies:
        - quantization_strategy