| 32 | } |
| 33 | |
| 34 | void ImageProcessor::transpose(float* from, float* dest, int dim) |
| 35 | { |
| 36 | int stride = 224 * 224; |
| 37 | |
| 38 | for (int c = 0; c < 3; c++) |
| 39 | { |
| 40 | for (int i = 0; i < 224 * 224; i++) |
| 41 | { |
| 42 | dest[i + stride*c] = from[c + i*3]; |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 |
no outgoing calls
no test coverage detected