207 const T *input_data, T *output_data)
214 stridedSlicePadIndices(&op_params, 5);
216 const int start_0 = startForAxis(op_params, input_shape, 0);
217 const int stop_0 = stopForAxis(op_params, input_shape, 0, start_0);
218 const int start_1 = startForAxis(op_params, input_shape, 1);
219 const int stop_1 = stopForAxis(op_params, input_shape, 1, start_1);
220 const int start_2 = startForAxis(op_params, input_shape, 2);
221 const int stop_2 = stopForAxis(op_params, input_shape, 2, start_2);
222 const int start_3 = startForAxis(op_params, input_shape, 3);
223 const int stop_3 = stopForAxis(op_params, input_shape, 3, start_3);
224 const int start_4 = startForAxis(op_params, input_shape, 4);
225 const int stop_4 = stopForAxis(op_params, input_shape, 4, start_4);
227 for (
int offset_0 = start_0 * input_shape.
dims(1), end_0 = stop_0 * input_shape.
dims(1),
228 step_0 = op_params.
strides[0] * input_shape.
dims(1);
229 !loopCondition(offset_0, end_0, op_params.
strides[0]); offset_0 += step_0)
231 for (
int offset_1 = (offset_0 + start_1) * input_shape.
dims(2),
232 end_1 = (offset_0 + stop_1) * input_shape.
dims(2),
233 step_1 = op_params.
strides[1] * input_shape.
dims(2);
234 !loopCondition(offset_1, end_1, op_params.
strides[1]); offset_1 += step_1)
236 for (
int offset_2 = (offset_1 + start_2) * input_shape.
dims(3),
237 end_2 = (offset_1 + stop_2) * input_shape.
dims(3),
238 step_2 = op_params.
strides[2] * input_shape.
dims(3);
239 !loopCondition(offset_2, end_2, op_params.
strides[2]); offset_2 += step_2)
241 for (
int offset_3 = (offset_2 + start_3) * input_shape.
dims(4),
242 end_3 = (offset_2 + stop_3) * input_shape.
dims(4),
243 step_3 = op_params.
strides[3] * input_shape.
dims(4);
244 !loopCondition(offset_3, end_3, op_params.
strides[3]); offset_3 += step_3)
246 for (
int offset_4 = offset_3 + start_4, end_4 = offset_3 + stop_4;
247 !loopCondition(offset_4, end_4, op_params.
strides[4]);
248 offset_4 += op_params.
strides[4])
250 *output_data++ = input_data[offset_4];