classification_tvm-autotvm-int8_static-224x224.py 511 Bytes
Newer Older
limm's avatar
limm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_base_ = ['./classification_tvm-autotvm_static-224x224.py']

calib_config = dict(create_calib=True, calib_file='calib_data.h5')
backend_config = dict(model_inputs=[
    dict(
        shape=dict(input=[1, 3, 224, 224]),
        dtype=dict(input='float32'),
        tuner=dict(
            type='AutoTVMTuner',
            log_file='tvm_tune_log.log',
            n_trial=1000,
            tuner=dict(type='XGBTuner'),
        ),
        qconfig=dict(calibrate_mode='kl_divergence', weight_scale='max'),
    )
])