summaryrefslogtreecommitdiff
path: root/res/TensorFlowLiteRecipes/Quant_SpaceToDepth_000/test.rule
blob: bb0c8cf733d2ee74a7ecede43aaa29013f46f01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# To check fake quantization of SpaceToDepth (S2D).
# 1. ifm is float32.
# 2. S2D is float32.
# 3. Q/DQ is inserted at the beginning of the model (from ifm).
# 4. Q/DQ is not inserted after S2D, because S2D does not change values of input.

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

RULE    "IFM_FP32"              $(tensor_dtype ifm) '=' FLOAT32
RULE    "S2D_FP32"              $(tensor_dtype ofm) '=' FLOAT32
RULE    "QUANTIZE_OP"           $(op_count QUANTIZE) '=' 1
RULE    "DEQUANTIZE_OP"         $(op_count DEQUANTIZE) '=' 1