| 141 | } |
| 142 | |
| 143 | size_t get_dimension_size(const TensorDescriptor &descriptor, const DataLayoutDimension data_layout_dimension) |
| 144 | { |
| 145 | ARM_COMPUTE_ERROR_ON_MSG(descriptor.layout == DataLayout::UNKNOWN, |
| 146 | "Cannot retrieve the dimension index for an unknown layout!"); |
| 147 | return descriptor.shape[get_dimension_idx(descriptor.layout, data_layout_dimension)]; |
| 148 | } |
| 149 | |
| 150 | size_t get_dimension_idx(DataLayout data_layout, const DataLayoutDimension data_layout_dimension) |
| 151 | { |
no test coverage detected