summaryrefslogtreecommitdiff
path: root/res/TensorFlowLiteRecipes/Quant_Add_002/test.rule
diff options
context:
space:
mode:
Diffstat (limited to 'res/TensorFlowLiteRecipes/Quant_Add_002/test.rule')
-rw-r--r--res/TensorFlowLiteRecipes/Quant_Add_002/test.rule12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/TensorFlowLiteRecipes/Quant_Add_002/test.rule b/res/TensorFlowLiteRecipes/Quant_Add_002/test.rule
new file mode 100644
index 000000000..96a2535ef
--- /dev/null
+++ b/res/TensorFlowLiteRecipes/Quant_Add_002/test.rule
@@ -0,0 +1,12 @@
+# To check mixed quantization.
+# Default dtype: S16, Add dtype: U8
+# Quantize Ops are inserted at the beginning/end of the model.
+
+RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1
+
+RULE "IFM1_S16" $(tensor_dtype ifm1) '=' INT16
+RULE "IFM1_QUANTIZE_U8" $(tensor_dtype ifm1_Quantize) '=' UINT8
+RULE "IFM2_U8" $(tensor_dtype ifm2) '=' UINT8
+RULE "ADD_U8" $(tensor_dtype ofm) '=' UINT8
+RULE "OUTPUT_U8" $(tensor_dtype ofm_Quantize) '=' INT16
+RULE "QUANTIZE_OP" $(op_count QUANTIZE) '=' 2