| 51 | |
| 52 | namespace { |
| 53 | int gforDim(af_index_t *indices) { |
| 54 | for (int i = 0; i < AF_MAX_DIMS; i++) { |
| 55 | if (indices[i].isBatch) { return i; } |
| 56 | } |
| 57 | return -1; |
| 58 | } |
| 59 | |
| 60 | af_array gforReorder(const af_array in, unsigned dim) { |
| 61 | // This is here to stop gcc from complaining |