3 # Add(RECIPE_DIR DTYPE dtype GRANULARITY granularity USE_QCONFIG(optional))
4 # AddFakeQuant(RECIPE_DIR)
9 # MPQ Test (default: u8, target: s16)
10 Add(Quant_Add_001 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
11 Add(Quant_AveragePool2D_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
12 Add(Quant_BatchMatMul_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
13 Add(Quant_Concatenation_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
14 Add(Quant_Conv_003 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
15 Add(Quant_DepthwiseConv2D_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
16 Add(Quant_FullyConnected_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
17 Add(Quant_LeakyRelu_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
18 Add(Quant_Logistic_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
19 Add(Quant_MaxPool2D_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
20 Add(Quant_Mean_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
21 Add(Quant_Mul_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
22 Add(Quant_Neg_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
23 Add(Quant_Pad_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
24 Add(Quant_PRelu_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
25 Add(Quant_ReLU_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
26 Add(Quant_ReLU6_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
27 Add(Quant_Reshape_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
28 Add(Quant_ResizeBilinear_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
29 Add(Quant_ResizeNearestNeighbor_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
30 Add(Quant_Slice_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
31 Add(Quant_Softmax_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
32 Add(Quant_Tanh_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
33 Add(Quant_Transpose_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
34 Add(Quant_TransposeConv_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
36 # MPQ Test (default: s16, target: u8)
37 Add(Quant_Add_002 DTYPE int16 GRANULARITY channel USE_QCONFIG)
38 Add(Quant_AveragePool2D_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
39 Add(Quant_BatchMatMul_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
40 Add(Quant_Concatenation_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
41 Add(Quant_Conv_004 DTYPE int16 GRANULARITY channel USE_QCONFIG)
42 Add(Quant_DepthwiseConv2D_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
43 Add(Quant_FullyConnected_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
44 Add(Quant_LeakyRelu_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
45 Add(Quant_Logistic_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
46 Add(Quant_MaxPool2D_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
47 Add(Quant_Mean_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
48 Add(Quant_Mul_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
49 Add(Quant_Neg_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
50 Add(Quant_Pad_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
51 Add(Quant_PRelu_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
52 Add(Quant_ReLU_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
53 Add(Quant_ReLU6_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
54 Add(Quant_Reshape_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
55 Add(Quant_ResizeBilinear_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
56 Add(Quant_ResizeNearestNeighbor_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
57 Add(Quant_Slice_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
58 Add(Quant_Softmax_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
59 Add(Quant_Tanh_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
60 Add(Quant_Transpose_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
61 Add(Quant_TransposeConv_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
63 Add(Quant_Conv_Mul_Add_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
64 Add(Quant_Conv_Mul_Add_001 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
65 Add(Quant_Conv_Mul_Add_002 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
66 Add(Quant_Split_Add_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
67 Add(Quant_Split_Add_001 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
68 Add(Quant_Conv_000 DTYPE uint8 GRANULARITY channel INPUT_DTYPE float32)
69 Add(Quant_Conv_001 DTYPE uint8 GRANULARITY channel OUTPUT_DTYPE float32)
70 Add(Quant_Conv_002 DTYPE uint8 GRANULARITY channel INPUT_DTYPE float32 OUTPUT_DTYPE float32)
72 AddFakeQuant(Quant_Add_000)
73 AddFakeQuant(Quant_DepthToSpace_000)
74 AddFakeQuant(Quant_SpaceToDepth_000)
78 # MPQ Test (default: u8, target: s16)
79 Add(Quant_InstanceNorm_000 DTYPE uint8 GRANULARITY channel USE_QCONFIG)
81 # MPQ Test (default: s16, target: u8)
82 Add(Quant_InstanceNorm_001 DTYPE int16 GRANULARITY channel USE_QCONFIG)
84 # Test for quantization without QuantizeDequantizeWeights
85 AddSkipQDQW(Quant_Conv_005 DTYPE uint8 GRANULARITY channel)
86 AddSkipQDQW(Quant_Conv_006 DTYPE int16 GRANULARITY channel)