MCPcopy Create free account
hub / github.com/alibaba/MNN / bottleNeckBlock

Function bottleNeckBlock

benchmark/exprModels/MobileNetExpr.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static VARP bottleNeckBlock(VARP x, INTS channels, int stride, int expansionRatio, int number) {
98 x = bottleNeck(x, {channels[0], channels[1]}, stride, expansionRatio);
99 for (int i = 1; i < number; ++i) {
100 x = bottleNeck(x, {channels[1], channels[1]}, 1, expansionRatio);
101 }
102 return x;
103}
104
105VARP mobileNetV2Expr(int numClass) {
106 auto x = _Input({1, 3, 224, 224}, NC4HW4);

Callers 1

mobileNetV2ExprFunction · 0.70

Calls 1

bottleNeckFunction · 0.70

Tested by

no test coverage detected