Skip to content

Commit 31c1e84

Browse files
committed
Fix CI and implement my own comments
1 parent b333727 commit 31c1e84

7 files changed

Lines changed: 12 additions & 11 deletions

File tree

Deeploy/Targets/GAP9/Platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
GAP9_MatMulMapper = NodeMapper(MatMulParser(), GAP9MatMulTilingReadyBindings)
6464
GAP9_RQIntegerDivMapper = NodeMapper(RQIntegerDivParser(), [BasicRQIntegerDivBinding])
6565
GAP9_RQGELU_int8_Mapper = NodeMapper(RQSiGELUParser(), GAP9iRQSGELUTilingReadyBindings)
66-
GAP9_Conv1DMapper = NodeMapper(PULPConv1DParser(), [PULPRQSConv1DBindings])
66+
GAP9_Conv1DMapper = NodeMapper(PULPConv1DParser(), PULPRQSConv1DBindings)
6767
GAP9_DWConv1DMapper = NodeMapper(PULPDWConv1DParser(), [PULPDWConv1DBinding])
6868
GAP9_FPConv2DMapper = NodeMapper(PULPFPConv2DParser(), GAP9Conv2DTilingReadyBindings)
6969
GAP9_Conv2DMapper = NodeMapper(PULPConv2DParser(), GAP9RQSConv2DTilingReadyBindings)

Deeploy/Targets/Generic/Bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
]
174174

175175
BasicMaxPool2DBindings = [
176-
NodeBinding(MaxPoolChecker([PointerClass(int8_t)], [PointerClass(int8_t)]), MaxPoolTemplate.referenceTemplate,
176+
NodeBinding(MaxPoolChecker([PointerClass(int8_t)], [PointerClass(int8_t)]), MaxPoolTemplate.reference2DTemplate,
177177
BasicTransformer)
178178
] + [
179179
NodeBinding(MaxPoolChecker([PointerClass(float32_t)], [PointerClass(float32_t)]),

Deeploy/Targets/Generic/Platform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
ITAMaxMapper = NodeMapper(ITAMaxParser(), [BasicITASoftmaxBinding])
5151
ITAPartialMaxMapper = NodeMapper(ITAPartialMaxParser(), [BasicITAPartialSoftmaxBinding])
5252
MatMulMapper = NodeMapper(MatMulParser(), BasicMatMulBindings)
53-
MaxPoolMapper = NodeMapper(GenericMaxPool2DParser(), BasicMaxPool2DBindings)
53+
MaxPool2DMapper = NodeMapper(GenericMaxPool2DParser(), BasicMaxPool2DBindings)
5454
MaxPool1DMapper = NodeMapper(MaxPool1DParser(), BasicMaxPool1DBindings)
5555
MulMapper = NodeMapper(MulParser(), BasicMulBindings)
5656
PowMapper = NodeMapper(PowParser(), BasicPowBindings)
@@ -99,7 +99,7 @@
9999
'ITAPartialMax': ITAMaxLayer([ITAPartialMaxMapper]),
100100
'MatMul': GEMMLayer([MatMulMapper]),
101101
'MatMulInteger': MatMulLayer([MatMulMapper]),
102-
'MaxPool': MaxPoolLayer([MaxPool1DMapper, MaxPoolMapper]),
102+
'MaxPool': MaxPoolLayer([MaxPool1DMapper, MaxPool2DMapper]),
103103
'Mul': MulLayer([MulMapper]),
104104
'Pow': PowLayer([PowMapper]),
105105
'Sqrt': SqrtLayer([SqrtMapper]),

Deeploy/Targets/Generic/Templates/MaxPoolTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def alignToContext(self, ctxt: NetworkContext,
2828
return ctxt, operatorRepresentation, []
2929

3030

31-
referenceTemplate = _MaxPoolTemplate("""
31+
reference2DTemplate = _MaxPoolTemplate("""
3232
<%
3333
batchOffsetIn = ch_im_in * dim_im_in_x * dim_im_in_y
3434
batchOffsetOut = ch_im_out * dim_im_out_x * dim_im_out_y

Deeploy/Targets/PULPOpen/Templates/MaxPoolTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def alignToContext(self, ctxt: NetworkContext,
4141
signatureString += '_u8'
4242
%>
4343
pulp_nn_maxpool${signatureString}(
44-
${data_in}, ${data_out}, 1, ${dim_im_in_y}, ${ch_im_in}, 1, ${dim_im_out_y},
44+
${data_in}, ${data_out}, 1, ${dim_im_in_y}, ${ch_im_in}, 1, ${dim_im_out_y},
4545
1, ${dim_kernel_y}, ${padding_y}, ${padding_y_right}, 0, 0, 1, ${stride_y});
4646
""")

DeeployTest/test_gap9_config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
"Kernels/Integer/Concat", "Kernels/Integer/Hardswish/Regular", "Others/Backtracking", "Kernels/FP32/Add/Regular",
1313
"Kernels/FP32/GEMM/Regular", "Kernels/FP32/Conv/Regular_2D_Bias", "Kernels/FP32/Conv/Regular_2D_NoBias",
1414
"Kernels/FP32/Conv/Regular_2D_ZeroValuedBias", "Kernels/FP32/Conv/DW_2D_Bias", "Kernels/FP32/Conv/DW_2D_NoBias",
15-
"Kernels/FP32/Conv/DW_2D_ZeroValuedBias", "Kernels/FP32/LayerNorm", "Kernels/FP32/ReLU", "Kernels/FP32/MaxPool",
16-
"Kernels/FP32/MatMul", "Kernels/FP32/Softmax/Regular", "Kernels/FP32/Transpose", "Kernels/FP32/Mul",
17-
"Kernels/Mixed/Dequant", "Kernels/Mixed/Quant", "Kernels/FP32/ReduceSum", "Kernels/FP32/Reshape/SkipConnection"
15+
"Kernels/FP32/Conv/DW_2D_ZeroValuedBias", "Kernels/FP32/LayerNorm", "Kernels/FP32/ReLU",
16+
"Kernels/FP32/MaxPool/Regular_2D", "Kernels/FP32/MatMul", "Kernels/FP32/Softmax/Regular", "Kernels/FP32/Transpose",
17+
"Kernels/FP32/Mul", "Kernels/Mixed/Dequant", "Kernels/Mixed/Quant", "Kernels/FP32/ReduceSum",
18+
"Kernels/FP32/Reshape/SkipConnection"
1819
]
1920

2021
MODEL_TESTS = [

DeeployTest/test_gap9_tiled_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"Kernels/FP32/Conv/DW_2D_NoBias": [7200],
2525
"Kernels/FP32/Conv/DW_2D_ZeroValuedBias": [7200],
2626
"Kernels/FP32/LayerNorm": [2000],
27-
"Kernels/FP32/MaxPool": [2000],
27+
"Kernels/FP32/MaxPool/Regular_2D": [2000],
2828
"Kernels/FP32/MatMul": [2000],
2929
"Kernels/FP32/ReLU": [2000],
3030
"Kernels/FP32/Reshape/SkipConnection": [1400],
@@ -49,7 +49,7 @@
4949
"Kernels/FP32/Conv/DW_2D_NoBias": [10000],
5050
"Kernels/FP32/Conv/DW_2D_ZeroValuedBias": [9800],
5151
"Kernels/FP32/LayerNorm": [2000],
52-
"Kernels/FP32/MaxPool": [5000],
52+
"Kernels/FP32/MaxPool/Regular_2D": [5000],
5353
"Kernels/FP32/MatMul": [5000],
5454
"Kernels/FP32/ReLU": [20],
5555
"Kernels/FP32/Reshape/SkipConnection": [2600],

0 commit comments

Comments
 (0)