summaryrefslogtreecommitdiff
path: root/res/TensorFlowLiteRecipes/Quant_Conv_Mul_Add_000/test.rule
blob: 912405507a9d864045a8792ec6a332a5bf42c7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
# To check mixed-precision quantization.
# Conv is int16, and others u8. Quantize Ops are inserted before/after Conv.

RULE    "VERIFY_FILE_FORMAT"      $(verify_file_format) '=' 1

RULE    "CONV_INT16"              $(tensor_dtype ofm_conv) '=' INT16
RULE    "WEIGHTS_INT16"           $(tensor_dtype filter) '=' INT16
RULE    "BIAS_INT32"              $(tensor_dtype bias) '=' INT64
RULE    "MUL_U8"                  $(tensor_dtype ofm_mul) '=' UINT8
RULE    "ADD_U8"                  $(tensor_dtype ofm_add) '=' UINT8
RULE    "QUANTIZE_OP"             $(op_count QUANTIZE) '=' 2