Home
last modified time | relevance | path

Searched refs:zero_buffer (Results 1 – 13 of 13) sorted by relevance

/external/XNNPACK/src/operators/
Dconvolution-nchw.c631 void* zero_buffer = xnn_reallocate_memory(convolution_op->zero_buffer, zero_size); in setup_convolution2d_nchw() local
632 if (zero_buffer == NULL) { in setup_convolution2d_nchw()
638 memset(zero_buffer, 0, zero_size); in setup_convolution2d_nchw()
639 convolution_op->zero_buffer = zero_buffer; in setup_convolution2d_nchw()
646 .zero = zero_buffer, in setup_convolution2d_nchw()
680 void* zero_buffer = xnn_reallocate_memory(convolution_op->zero_buffer, zero_size); in setup_convolution2d_nchw() local
681 if (zero_buffer == NULL) { in setup_convolution2d_nchw()
687 memset(zero_buffer, 0, zero_size); in setup_convolution2d_nchw()
688 convolution_op->zero_buffer = zero_buffer; in setup_convolution2d_nchw()
695 .zero = zero_buffer, in setup_convolution2d_nchw()
Daverage-pooling-nhwc.c186 void* zero_buffer = xnn_allocate_simd_memory(zero_bytes); in xnn_create_average_pooling2d_nhwc_qu8() local
187 if (zero_buffer == NULL) { in xnn_create_average_pooling2d_nhwc_qu8()
193 memset(zero_buffer, input_zero_point, channels * sizeof(uint8_t)); in xnn_create_average_pooling2d_nhwc_qu8()
194 average_pooling_op->zero_buffer = zero_buffer; in xnn_create_average_pooling2d_nhwc_qu8()
357 void* zero_buffer = xnn_allocate_zero_simd_memory(zero_bytes); in xnn_create_average_pooling2d_nhwc_f32() local
358 if (zero_buffer == NULL) { in xnn_create_average_pooling2d_nhwc_f32()
364 average_pooling_op->zero_buffer = zero_buffer; in xnn_create_average_pooling2d_nhwc_f32()
487 .zero = average_pooling_op->zero_buffer, in setup_average_pooling2d()
590 .zero = average_pooling_op->zero_buffer, in setup_average_pooling2d()
617 .zero = average_pooling_op->zero_buffer, in setup_average_pooling2d()
Dglobal-average-pooling-nwc.c91 void* zero_buffer = xnn_allocate_zero_simd_memory(zero_size); in create_global_average_pooling_nwc() local
92 if (zero_buffer == NULL) { in create_global_average_pooling_nwc()
98 global_average_pooling_op->zero_buffer = zero_buffer; in create_global_average_pooling_nwc()
176 .zero = global_average_pooling_op->zero_buffer, in setup_global_average_pooling_nwc()
Ddeconvolution-nhwc.c236 deconvolution_op->zero_buffer = xnn_allocate_simd_memory(zero_size); in create_deconvolution2d_nhwc()
237 if (deconvolution_op->zero_buffer == NULL) { in create_deconvolution2d_nhwc()
243 memset(deconvolution_op->zero_buffer, input_padding_byte, zero_size); in create_deconvolution2d_nhwc()
531 .zero = deconvolution_op->zero_buffer, in setup_conv_path()
708 .zero = deconvolution_op->zero_buffer, in setup_subconv2d_path()
Dconvolution-nhwc.c374 convolution_op->zero_buffer = xnn_allocate_simd_memory(zero_size); in create_convolution2d_nhwc()
375 if (convolution_op->zero_buffer == NULL) { in create_convolution2d_nhwc()
381 memset(convolution_op->zero_buffer, input_padding_byte, zero_size); in create_convolution2d_nhwc()
979 .zero = convolution_op->zero_buffer, in setup_convolution2d_nhwc()
1127 .zero = convolution_op->zero_buffer, in setup_convolution2d_nhwc()
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dalts_crypter_test.cc139 auto* zero_buffer = static_cast<uint8_t*>(gpr_zalloc(data_size)); in alts_crypter_test_corrupted_unseal() local
158 GPR_ASSERT(memcmp(corrupted_data_buffer, zero_buffer, data_size) == 0); in alts_crypter_test_corrupted_unseal()
177 GPR_ASSERT(memcmp(corrupted_data_buffer, zero_buffer, data_size) == 0); in alts_crypter_test_corrupted_unseal()
196 GPR_ASSERT(memcmp(corrupted_data_buffer, zero_buffer, data_size) == 0); in alts_crypter_test_corrupted_unseal()
201 gpr_free(zero_buffer); in alts_crypter_test_corrupted_unseal()
212 auto* zero_buffer = static_cast<uint8_t*>(gpr_zalloc(data_size)); in alts_crypter_test_unsync_seal_unseal() local
236 GPR_ASSERT(memcmp(data_buffer, zero_buffer, data_size) == 0); in alts_crypter_test_unsync_seal_unseal()
260 GPR_ASSERT(memcmp(data_buffer, zero_buffer, data_size) == 0); in alts_crypter_test_unsync_seal_unseal()
263 gpr_free(zero_buffer); in alts_crypter_test_unsync_seal_unseal()
/external/XNNPACK/src/
Doperator-delete.c31 xnn_release_simd_memory(op->zero_buffer); in xnn_delete_operator()
Dindirection.c25 const void* zero = op->zero_buffer; in xnn_indirection_init_conv2d()
86 const void* zero = op->zero_buffer; in xnn_indirection_init_deconv2d()
142 const void* zero = op->zero_buffer; in xnn_indirection_init_subconv2d()
207 const void* zero = op->zero_buffer; in xnn_indirection_init_dwconv2d()
/external/XNNPACK/src/xnnpack/
Doperator.h253 void* zero_buffer; member
/external/XNNPACK/bench/
Df16-igemm.cc101 convolution_op.zero_buffer = z.data(); in IGEMMBenchmark()
Df16-dwconv.cc104 convolution_op.zero_buffer = z.data(); in DWConvBenchmark()
Df32-dwconv.cc96 convolution_op.zero_buffer = z.data(); in DWConvBenchmark()
Df32-igemm.cc95 convolution_op.zero_buffer = z.data(); in IGEMMBenchmark()