Imported Upstream version 1.21.0
[platform/core/ml/nnfw.git] / res / TensorFlowLiteRecipes / Quant_Conv_003 / test.rule
1 # To check mixed quantization.
2 # Default dtype: U8, Target Op dtype: S16
3 # Quantize Ops are inserted at the beginning/end of the model.
4
5 RULE    "VERIFY_FILE_FORMAT"    $(verify_file_format) '=' 1
6
7 RULE    "IFM_U8"                $(tensor_dtype ifm) '=' UINT8
8 RULE    "IFM_QUANTIZE_S16"      $(tensor_dtype ifm_Quantize) '=' INT16
9 RULE    "KER_S16"               $(tensor_dtype ker) '=' INT16
10 RULE    "BIAS_S64"              $(tensor_dtype bias) '=' INT64
11 RULE    "TARGET_S16"            $(tensor_dtype ofm) '=' INT16
12 RULE    "OUTPUT_S16"            $(tensor_dtype ofm_Quantize) '=' UINT8
13 RULE    "QUANTIZE_OP"           $(op_count QUANTIZE) '=' 2