summaryrefslogtreecommitdiff
path: root/res/TensorFlowLiteRecipes/Quant_Concatenation_001/test.rule
blob: 2483377167343f2ca85ca4ea1c019b96b7d52a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# To check mixed quantization.
# Default dtype: S16, Target Op dtype: U8
# Quantize Ops are inserted at the beginning/end of the model.

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

RULE    "IFM1_S16"               $(tensor_dtype ifm1) '=' INT16
RULE    "IFM1_QUANTIZE_U8"       $(tensor_dtype ifm1_Quantize) '=' UINT8
RULE    "IFM2_S16"               $(tensor_dtype ifm2) '=' INT16
RULE    "IFM2_QUANTIZE_U8"       $(tensor_dtype ifm2_Quantize) '=' UINT8
RULE    "TARGET_U8"              $(tensor_dtype ofm) '=' UINT8
RULE    "OUTPUT_S16"             $(tensor_dtype ofm_Quantize) '=' INT16
RULE    "QUANTIZE_OP"            $(op_count QUANTIZE) '=' 3