qat_dis.yaml 772 字节
Newer Older
1
Global:
I
iamWHTWD 已提交
2
  model_dir: InceptionV3_infer
3 4 5
  model_filename: inference.pdmodel
  params_filename: inference.pdiparams
  batch_size: 32
C
Chang Xu 已提交
6 7
  resize_size: 320
  img_size: 299
C
Chang Xu 已提交
8
  data_dir: ./ILSVRC2012
9 10
  
Distillation:
C
Chang Xu 已提交
11
  alpha: 1.0
12 13 14
  loss: l2
  node:
  - softmax_1.tmp_0
15
QuantAware:
16
  is_full_quantize: false
17
  onnx_format: True
C
Chang Xu 已提交
18
  activation_quantize_type: moving_average_abs_max
19 20 21 22 23 24
  weight_quantize_type: channel_wise_abs_max
  not_quant_pattern:
  - skip_quant
  quantize_op_types:
  - conv2d
  - depthwise_conv2d
25 26
  - matmul
  - matmul_v2
27
  weight_bits: 8
C
Chang Xu 已提交
28
  
29 30 31 32 33 34 35 36 37 38 39
TrainConfig:
  epochs: 1
  eval_iter: 500
  learning_rate: 
    type: CosineAnnealingDecay 
    learning_rate: 0.015
  optimizer_builder:
    optimizer:
      type: Momentum
    weight_decay: 0.00002
  origin_metric: 0.7914