TODO(b/80418076): Move to legacy ops file, update invocations.
| 316 | |
| 317 | // TODO(b/80418076): Move to legacy ops file, update invocations. |
| 318 | inline RuntimeShape DimsToShape(const tflite::Dims<4>& dims) { |
| 319 | return RuntimeShape( |
| 320 | {dims.sizes[3], dims.sizes[2], dims.sizes[1], dims.sizes[0]}); |
| 321 | } |
| 322 | |
| 323 | // Gets next index to iterate through a multidimensional array. |
| 324 | inline bool NextIndex(const int num_dims, const int* dims, int* current) { |
no test coverage detected