43 for (
int out_b = 0; out_b < output_batch; ++out_b)
45 for (
int out_h = 0; out_h < output_height; ++out_h)
47 for (
int out_w = 0; out_w < output_width; ++out_w)
49 for (
int out_d = 0; out_d < output_depth; ++out_d)
52 out_d + ((out_h % block_size) * block_size + out_w % block_size) * output_depth;
54 const int in_w = out_w / block_size;
55 const int in_h = out_h / block_size;
56 const int in_b = out_b;
58 const int input_index =
offset(input_shape.
dimsData(), in_b, in_h, in_w, in_d);
61 output_data[output_index] = input_data[input_index];