| 35 | } |
| 36 | |
| 37 | static 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 | |
| 46 | VARP shuffleNetExpr(int group, int numClass) { |
| 47 | std::map<int, std::vector<int>> groupMap = { |
no test coverage detected