| 274 | } |
| 275 | |
| 276 | void FromFortranOrder(SampleView<CPUBackend> output, ConstSampleView<CPUBackend> input) { |
| 277 | int n_dims = input.shape().sample_dim(); |
| 278 | SmallVector<int, 6> perm; |
| 279 | perm.resize(n_dims); |
| 280 | for (int i = 0; i < n_dims; ++i) |
| 281 | perm[i] = n_dims - i - 1; |
| 282 | TYPE_SWITCH(input.type(), type2id, T, NUMPY_ALLOWED_TYPES, ( |
| 283 | kernels::TransposeGrouped(view<T>(output), view<const T>(input), make_cspan(perm)); |
| 284 | ), DALI_FAIL(make_string("Unsupported input type: ", input.type()))); // NOLINT |
| 285 | } |
| 286 | |
| 287 | DALIDataType HeaderData::type() const { |
| 288 | return type_info ? type_info->id() : DALI_NO_TYPE; |
no test coverage detected