| 49 | } |
| 50 | |
| 51 | int GetSrcBatchSize(int dst_channels) { |
| 52 | const int dst_depth = IntegralDivideRoundUp(dst_channels, 4); |
| 53 | if (dst_depth % 4 == 0) { |
| 54 | return 2; |
| 55 | } else if (dst_depth % 2 == 0) { |
| 56 | return 4; |
| 57 | } else { |
| 58 | return 8; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | std::string GetValuesDeclarationPart(int num_output_slices, bool is_1x1) { |
| 63 | std::string code; |
no test coverage detected