/external/XNNPACK/src/ |
D | indirection.c | 26 const size_t input_pixel_stride = op->input_pixel_stride << log2_element_size; in xnn_indirection_init_conv2d() local 61 ((uintptr_t) input + (input_y * input_width + input_x) * input_pixel_stride); in xnn_indirection_init_conv2d() 85 const size_t input_pixel_stride = op->input_pixel_stride << log2_element_size; in xnn_indirection_init_deconv2d() local 123 …ndex] = (const void*) ((uintptr_t) input + (input_y * input_width + input_x) * input_pixel_stride); in xnn_indirection_init_deconv2d() 141 const size_t input_pixel_stride = op->input_pixel_stride << log2_element_size; in xnn_indirection_init_subconv2d() local 185 … (const void*) ((uintptr_t) input + (input_y * input_width + input_x) * input_pixel_stride); in xnn_indirection_init_subconv2d() 206 const size_t input_pixel_stride = op->input_pixel_stride << log2_element_size; in xnn_indirection_init_dwconv2d() local 231 … (const void*) ((uintptr_t) input + (input_y * input_width + input_x) * input_pixel_stride); in xnn_indirection_init_dwconv2d() 257 const size_t input_pixel_stride = op->input_pixel_stride << log2_element_size; in xnn_indirection_init_maxpool2d() local 304 …ndex] = (const void*) ((uintptr_t) input + (input_y * input_width + input_x) * input_pixel_stride); in xnn_indirection_init_maxpool2d() [all …]
|
/external/XNNPACK/test/ |
D | resize-bilinear-operator-tester.h | 116 inline ResizeBilinearOperatorTester& input_pixel_stride(size_t input_pixel_stride) { in input_pixel_stride() function 117 assert(input_pixel_stride != 0); in input_pixel_stride() 118 this->input_pixel_stride_ = input_pixel_stride; in input_pixel_stride() 122 inline size_t input_pixel_stride() const { in input_pixel_stride() function 232 …float> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestNHWCxF32() 254 … * input_height() + input_y_top) * input_width() + input_x_left) * input_pixel_stride() + c] * (1.… in TestNHWCxF32() 255 …* input_height() + input_y_top) * input_width() + input_x_right) * input_pixel_stride() + c] * (1.… in TestNHWCxF32() 256 …input_height() + input_y_bottom) * input_width() + input_x_left) * input_pixel_stride() + c] * y_a… in TestNHWCxF32() 257 …nput_height() + input_y_bottom) * input_width() + input_x_right) * input_pixel_stride() + c] * y_a… in TestNHWCxF32() 269 channels(), input_pixel_stride(), output_pixel_stride(), in TestNHWCxF32() [all …]
|
D | argmax-pooling-operator-tester.h | 232 inline ArgmaxPoolingOperatorTester& input_pixel_stride(size_t input_pixel_stride) { in input_pixel_stride() argument 233 assert(input_pixel_stride != 0); in input_pixel_stride() 234 this->input_pixel_stride_ = input_pixel_stride; in input_pixel_stride() 238 inline size_t input_pixel_stride() const { in input_pixel_stride() function 336 …float> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestF32() 353 …put[((i * input_height() + iy_top_left) * input_width() + ix_top_left) * input_pixel_stride() + c]; in TestF32() 360 …t float value = input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]; in TestF32() 384 channels(), input_pixel_stride(), output_pixel_stride(), in TestF32() 426 (batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels(), in TestSetupF32() 427 …(next_batch_size() * next_input_height() * next_input_width() - 1) * input_pixel_stride() + channe… in TestSetupF32() [all …]
|
D | unpooling-operator-tester.h | 181 inline UnpoolingOperatorTester& input_pixel_stride(size_t input_pixel_stride) { in input_pixel_stride() function 182 assert(input_pixel_stride != 0); in input_pixel_stride() 183 this->input_pixel_stride_ = input_pixel_stride; in input_pixel_stride() 187 inline size_t input_pixel_stride() const { in input_pixel_stride() function 286 …t32_t> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestX32() 307 input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]; in TestX32() 321 channels(), input_pixel_stride(), output_pixel_stride(), in TestX32() 360 (batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels(), in TestSetupX32() 361 …(next_batch_size() * next_input_height() * next_input_width() - 1) * input_pixel_stride() + channe… in TestSetupX32() 388 input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]; in TestSetupX32() [all …]
|
D | average-pooling-operator-tester.h | 283 inline AveragePoolingOperatorTester& input_pixel_stride(size_t input_pixel_stride) { in input_pixel_stride() function 284 assert(input_pixel_stride != 0); in input_pixel_stride() 285 this->input_pixel_stride_ = input_pixel_stride; in input_pixel_stride() 289 inline size_t input_pixel_stride() const { in input_pixel_stride() function 453 …nt8_t> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestQU8() 472 …e(int32_t(input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]) - in… in TestQU8() 495 channels(), input_pixel_stride(), output_pixel_stride(), in TestQU8() 537 …float> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestF32() 556 … acc += input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]; in TestF32() 592 channels(), input_pixel_stride(), output_pixel_stride(), in TestF32() [all …]
|
D | max-pooling-operator-tester.h | 325 inline MaxPoolingOperatorTester& input_pixel_stride(size_t input_pixel_stride) { in input_pixel_stride() argument 326 assert(input_pixel_stride != 0); in input_pixel_stride() 327 this->input_pixel_stride_ = input_pixel_stride; in input_pixel_stride() 331 inline size_t input_pixel_stride() const { in input_pixel_stride() function 455 …nt8_t> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestU8() 474 … input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]); in TestU8() 497 channels(), input_pixel_stride(), output_pixel_stride(), in TestU8() 538 …float> input((batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + channels… in TestF32() 557 … input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + c]); in TestF32() 594 channels(), input_pixel_stride(), output_pixel_stride(), in TestF32() [all …]
|
D | deconvolution-operator-tester.h | 346 inline DeconvolutionOperatorTester& input_pixel_stride(size_t input_pixel_stride) { in input_pixel_stride() argument 347 assert(input_pixel_stride >= 1); in input_pixel_stride() 348 this->input_pixel_stride_ = input_pixel_stride; in input_pixel_stride() 352 inline size_t input_pixel_stride() const { in input_pixel_stride() function 493 …(batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + groups() * group_inpu… in TestQU8() 541 …(int32_t(input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + g * group… in TestQU8() 581 input_pixel_stride(), output_pixel_stride(), in TestQU8() 632 …(batch_size() * input_height() * input_width() - 1) * input_pixel_stride() + groups() * group_inpu… in TestF32() 677 …input[((i * input_height() + iy) * input_width() + ix) * input_pixel_stride() + g * group_input_ch… in TestF32() 716 input_pixel_stride(), output_pixel_stride(), in TestF32() [all …]
|
D | argmax-pooling-nhwc.cc | 154 .input_pixel_stride(5 * channels) in TEST() 163 .input_pixel_stride(5 * channels) in TEST() 327 .input_pixel_stride(5 * channels) in TEST() 336 .input_pixel_stride(5 * channels) in TEST() 404 .input_pixel_stride(5 * channels) in TEST() 413 .input_pixel_stride(5 * channels) in TEST() 482 .input_pixel_stride(5 * channels) in TEST() 491 .input_pixel_stride(5 * channels) in TEST()
|
D | max-pooling-nhwc.cc | 213 .input_pixel_stride(5 * channels) in TEST() 222 .input_pixel_stride(5 * channels) in TEST() 503 .input_pixel_stride(5 * channels) in TEST() 512 .input_pixel_stride(5 * channels) in TEST() 631 .input_pixel_stride(5 * channels) in TEST() 640 .input_pixel_stride(5 * channels) in TEST() 707 .input_pixel_stride(5 * channels) in TEST() 716 .input_pixel_stride(5 * channels) in TEST() 1029 .input_pixel_stride(5 * channels) in TEST() 1038 .input_pixel_stride(5 * channels) in TEST() [all …]
|
/external/XNNPACK/src/operators/ |
D | resize-bilinear-nhwc.c | 25 size_t input_pixel_stride, in xnn_create_resize_bilinear2d_nhwc_f32() argument 48 if (input_pixel_stride < channels) { in xnn_create_resize_bilinear2d_nhwc_f32() 52 …xnn_operator_type_to_string(xnn_operator_type_resize_bilinear_nhwc_f32), input_pixel_stride, chann… in xnn_create_resize_bilinear2d_nhwc_f32() 75 resize_op->input_pixel_stride = input_pixel_stride; in xnn_create_resize_bilinear2d_nhwc_f32() 173 const size_t input_pixel_stride_in_bytes = resize_op->input_pixel_stride * sizeof(float); in xnn_setup_resize_bilinear2d_nhwc_f32()
|
D | unpooling-nhwc.c | 40 size_t input_pixel_stride, in xnn_create_unpooling2d_nhwc_x32() argument 79 if (input_pixel_stride < channels) { in xnn_create_unpooling2d_nhwc_x32() 83 … xnn_operator_type_to_string(xnn_operator_type_unpooling_nhwc_x32), input_pixel_stride, channels); in xnn_create_unpooling2d_nhwc_x32() 113 unpooling_op->input_pixel_stride = input_pixel_stride; in xnn_create_unpooling2d_nhwc_x32() 207 const size_t input_pixel_stride_in_bytes = unpooling_op->input_pixel_stride * sizeof(float); in xnn_setup_unpooling2d_nhwc_x32()
|
D | resize-bilinear-nchw.c | 25 size_t input_pixel_stride, in xnn_create_resize_bilinear2d_nchw_f32() argument 48 if (input_pixel_stride < channels) { in xnn_create_resize_bilinear2d_nchw_f32() 52 …xnn_operator_type_to_string(xnn_operator_type_resize_bilinear_nchw_f32), input_pixel_stride, chann… in xnn_create_resize_bilinear2d_nchw_f32() 75 resize_op->input_pixel_stride = input_pixel_stride; in xnn_create_resize_bilinear2d_nchw_f32() 201 … .input_batch_stride = resize_op->input_pixel_stride * input_height * input_width * sizeof(float), in xnn_setup_resize_bilinear2d_nchw_f32()
|
D | max-pooling-nhwc.c | 57 size_t input_pixel_stride, in create_max_pooling2d_nhwc() argument 124 if (input_pixel_stride < channels) { in create_max_pooling2d_nhwc() 128 xnn_operator_type_to_string(operator_type), input_pixel_stride, channels); in create_max_pooling2d_nhwc() 174 max_pooling_op->input_pixel_stride = input_pixel_stride; in create_max_pooling2d_nhwc() 302 ….input_batch_stride = (input_height * input_width * max_pooling_op->input_pixel_stride) << log2_in… in setup_max_pooling2d_nhwc() 336 size_t input_pixel_stride, in xnn_create_max_pooling2d_nhwc_u8() argument 356 channels, input_pixel_stride, output_pixel_stride, in xnn_create_max_pooling2d_nhwc_u8() 375 size_t input_pixel_stride, in xnn_create_max_pooling2d_nhwc_f32() argument 409 channels, input_pixel_stride, output_pixel_stride, in xnn_create_max_pooling2d_nhwc_f32()
|
D | average-pooling-nhwc.c | 53 size_t input_pixel_stride, in xnn_create_average_pooling2d_nhwc_qu8() argument 105 if (input_pixel_stride < channels) { in xnn_create_average_pooling2d_nhwc_qu8() 109 …xnn_operator_type_to_string(xnn_operator_type_average_pooling_nhwc_qu8), input_pixel_stride, chann… in xnn_create_average_pooling2d_nhwc_qu8() 208 average_pooling_op->input_pixel_stride = input_pixel_stride; in xnn_create_average_pooling2d_nhwc_qu8() 249 size_t input_pixel_stride, in xnn_create_average_pooling2d_nhwc_f32() argument 297 if (input_pixel_stride < channels) { in xnn_create_average_pooling2d_nhwc_f32() 301 …xnn_operator_type_to_string(xnn_operator_type_average_pooling_nhwc_f32), input_pixel_stride, chann… in xnn_create_average_pooling2d_nhwc_f32() 378 average_pooling_op->input_pixel_stride = input_pixel_stride; in xnn_create_average_pooling2d_nhwc_f32() 483 …const size_t input_stride_in_bytes = average_pooling_op->input_pixel_stride << log2_input_element_… in setup_average_pooling2d() 488 .input_pixel_stride = input_stride_in_bytes, in setup_average_pooling2d() [all …]
|
D | argmax-pooling-nhwc.c | 50 size_t input_pixel_stride, in xnn_create_argmax_pooling2d_nhwc_f32() argument 89 if (input_pixel_stride < channels) { in xnn_create_argmax_pooling2d_nhwc_f32() 93 …xnn_operator_type_to_string(xnn_operator_type_argmax_pooling_nhwc_f32), input_pixel_stride, channe… in xnn_create_argmax_pooling2d_nhwc_f32() 139 argmax_pooling_op->input_pixel_stride = input_pixel_stride; in xnn_create_argmax_pooling2d_nhwc_f32() 263 ….input_batch_stride = input_height * input_width * argmax_pooling_op->input_pixel_stride * sizeof(… in xnn_setup_argmax_pooling2d_nhwc_f32()
|
D | deconvolution-nhwc.c | 55 size_t input_pixel_stride, in create_deconvolution2d_nhwc() argument 129 if (input_pixel_stride < input_channels) { in create_deconvolution2d_nhwc() 134 input_pixel_stride, groups, group_input_channels); in create_deconvolution2d_nhwc() 259 deconvolution_op->input_pixel_stride = input_pixel_stride; in create_deconvolution2d_nhwc() 315 size_t input_pixel_stride, in xnn_create_deconvolution2d_nhwc_qu8() argument 380 input_pixel_stride, output_pixel_stride, in xnn_create_deconvolution2d_nhwc_qu8() 408 size_t input_pixel_stride, in xnn_create_deconvolution2d_nhwc_f32() argument 458 input_pixel_stride, output_pixel_stride, in xnn_create_deconvolution2d_nhwc_f32() 539 ….ba_stride = input_height * input_width * deconvolution_op->input_pixel_stride << log2_input_eleme… in setup_conv_path() 625 const size_t input_pixel_stride = deconvolution_op->input_pixel_stride << log2_input_element_size; in setup_subconv2d_path() local [all …]
|
D | depth-to-space-nhwc.c | 78 depth_to_space_op->input_pixel_stride = input_channel_stride; in xnn_create_depth_to_space_nhwc_x32() 139 .input_height_stride = input_width * depth_to_space_op->input_pixel_stride * sizeof(float), in xnn_setup_depth_to_space_nhwc_x32() 140 .input_width_stride = depth_to_space_op->input_pixel_stride * sizeof(float), in xnn_setup_depth_to_space_nhwc_x32()
|
D | softmax-nc.c | 122 softmax_op->input_pixel_stride = input_stride; in xnn_create_softmax_nc_qu8() 170 .x_stride = softmax_op->input_pixel_stride * sizeof(uint8_t), in xnn_setup_softmax_nc_qu8() 237 softmax_op->input_pixel_stride = input_stride; in xnn_create_softmax_nc_f32() 285 .x_stride = softmax_op->input_pixel_stride * sizeof(float), in xnn_setup_softmax_nc_f32()
|
D | prelu-nc.c | 83 prelu_op->input_pixel_stride = input_stride; in xnn_create_prelu_nc_f32() 128 .x_stride = prelu_op->input_pixel_stride * sizeof(float), in xnn_setup_prelu_nc_f32()
|
D | depth-to-space-nchw2nhwc.c | 78 depth_to_space_op->input_pixel_stride = input_channel_stride; in xnn_create_depth_to_space_nchw2nhwc_x32() 139 ….input_batch_stride = depth_to_space_op->input_pixel_stride * input_height * input_width * sizeof(… in xnn_setup_depth_to_space_nchw2nhwc_x32()
|
D | sigmoid-nc.c | 140 sigmoid_op->input_pixel_stride = input_stride; in xnn_create_sigmoid_nc_qu8() 186 const size_t input_stride = sigmoid_op->input_pixel_stride; in xnn_setup_sigmoid_nc_qu8()
|
/external/XNNPACK/src/xnnpack/ |
D | indirection.h | 50 size_t input_pixel_stride, 62 size_t input_pixel_stride,
|
/external/XNNPACK/bench/ |
D | f16-igemm.cc | 58 const size_t input_pixel_stride = group_input_channels; in IGEMMBenchmark() local 71 std::vector<uint16_t> a(input_height * input_width * input_pixel_stride); in IGEMMBenchmark() 100 convolution_op.input_pixel_stride = input_pixel_stride; in IGEMMBenchmark()
|
D | deconvolution.cc | 48 const size_t input_pixel_stride = groups * group_input_channels; in xnnpack_deconvolution_qu8() local 58 std::vector<uint8_t> input(batch_size * input_height * input_width * input_pixel_stride); in xnnpack_deconvolution_qu8() 85 input_pixel_stride, output_pixel_stride, in xnnpack_deconvolution_qu8() 166 const size_t input_pixel_stride = groups * group_input_channels; in xnnpack_deconvolution_f32() local 176 …std::vector<float> input(batch_size * input_height * input_width * input_pixel_stride + XNN_EXTRA_… in xnnpack_deconvolution_f32() 203 input_pixel_stride, output_pixel_stride, in xnnpack_deconvolution_f32()
|
/external/XNNPACK/include/ |
D | xnnpack.h | 1141 size_t input_pixel_stride, 1166 size_t input_pixel_stride, 1272 size_t input_pixel_stride, 1415 size_t input_pixel_stride, 1509 size_t input_pixel_stride, 1527 size_t input_pixel_stride, 1786 size_t input_pixel_stride, 2001 size_t input_pixel_stride, 2073 size_t input_pixel_stride, 2235 size_t input_pixel_stride,
|