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

Function shuffleBlock

benchmark/exprModels/ShuffleNetExpr.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static VARP shuffleBlock(VARP x, int inputChannel, int outputChannel,
38 int group, int stride, int narrowRatio, int number) {
39 x = shuffleUnit(x, inputChannel, outputChannel, group, stride, narrowRatio);
40 for (int i = 1; i < number; ++i) {
41 x = shuffleUnit(x, outputChannel, outputChannel, group, 1, narrowRatio);
42 }
43 return x;
44}
45
46VARP shuffleNetExpr(int group, int numClass) {
47 std::map<int, std::vector<int>> groupMap = {

Callers 1

shuffleNetExprFunction · 0.85

Calls 1

shuffleUnitFunction · 0.85

Tested by

no test coverage detected