34 int axis = params.
axis;
38 for (
int i = 0; i < axis; i++)
43 for (
int i = params.
axis + 1; i < dimensions; i++)
48 for (
int i = 0; i < inputs_count; ++i)
50 for (
int k = 0; k < outer_size; k++)
52 const Scalar *input_ptr = input_data[i] + copy_size * k;
53 int loc = k * inputs_count * copy_size + i * copy_size;
54 memcpy(output_data + loc, input_ptr, copy_size *
sizeof(Scalar));