Imported Upstream version 1.21.0
[platform/core/ml/nnfw.git] / res / TensorFlowLiteRecipes / Quant_AveragePool2D_001 / test.rule
1 # To check mixed quantization.
2 # Default dtype: S16, Target Op dtype: U8
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_S16"                $(tensor_dtype ifm) '=' INT16
8 RULE    "IFM_QUANTIZE_U8"        $(tensor_dtype ifm_Quantize) '=' UINT8
9 RULE    "TARGET_U8"              $(tensor_dtype ofm) '=' UINT8
10 RULE    "OUTPUT_S16"             $(tensor_dtype ofm_Quantize) '=' INT16
11 RULE    "QUANTIZE_OP"            $(op_count QUANTIZE) '=' 2