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

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

RULE    "IFM_U8"                $(tensor_dtype ifm) '=' UINT8
RULE    "IFM_QUANTIZE_S16"      $(tensor_dtype ifm_Quantize) '=' INT16
RULE    "TARGET_S16"            $(tensor_dtype ofm) '=' INT16
RULE    "OUTPUT_S16"            $(tensor_dtype ofm_Quantize) '=' UINT8
RULE    "QUANTIZE_OP"           $(op_count QUANTIZE) '=' 2