diff options
Diffstat (limited to 'res/TensorFlowLiteRecipes/Quant_Conv_002/test.rule')
-rw-r--r-- | res/TensorFlowLiteRecipes/Quant_Conv_002/test.rule | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/res/TensorFlowLiteRecipes/Quant_Conv_002/test.rule b/res/TensorFlowLiteRecipes/Quant_Conv_002/test.rule new file mode 100644 index 000000000..2187895f8 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Quant_Conv_002/test.rule @@ -0,0 +1,13 @@ +# To check float32 input/output. +# Input/Output is float32, Conv is uint8. +# Quantize Op is inserted at the beginning, Dequantize Op is inserted at the end. + +RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 + +RULE "INPUT_FLOAT32" $(tensor_dtype ifm) '=' FLOAT32 +RULE "OUTPUT_FLOAT32" $(tensor_dtype ofm_Dequantize) '=' FLOAT32 +RULE "CONV_UINT8" $(tensor_dtype ofm) '=' UINT8 +RULE "WEIGHTS_UINT8" $(tensor_dtype filter) '=' UINT8 +RULE "BIAS_INT32" $(tensor_dtype bias) '=' INT32 +RULE "QUANTIZE_OP" $(op_count QUANTIZE) '=' 1 +RULE "DEQUANTIZE_OP" $(op_count DEQUANTIZE) '=' 1 |