When we use MNNConverter to convert other mobilenet model to MNN model, {Conv3x3Depthwise + BN + Relu + Conv1x1 + BN + Relu} will be converted and optimized to {Conv3x3Depthwise + Conv1x1}
| 20 | // {Conv3x3Depthwise + BN + Relu + Conv1x1 + BN + Relu} will be converted |
| 21 | // and optimized to {Conv3x3Depthwise + Conv1x1} |
| 22 | static VARP convBlock(VARP x, INTS channels, int stride) { |
| 23 | int inputChannel = channels[0], outputChannel = channels[1]; |
| 24 | int group = inputChannel; |
| 25 | x = _Conv(0.0f, 0.0f, x, {inputChannel, inputChannel}, {3, 3}, SAME, {stride, stride}, {1, 1}, group); |
| 26 | x = _Conv(0.0f, 0.0f, x, {inputChannel, outputChannel}, {1, 1}, SAME, {1, 1}, {1, 1}, 1); |
| 27 | return x; |
| 28 | } |
| 29 | |
| 30 | VARP _mobileNetV1Expr() { |
| 31 | int inputSize = 224, poolSize; // MobileNet_224, MobileNet_192, MobileNet_160, MobileNet_128 |
no test coverage detected