Home
last modified time | relevance | path

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

/external/XNNPACK/src/operators/
Dconvolution-nchw.c651 void* zero_buffer = xnn_reallocate_memory(convolution_op->zero_buffer, zero_size); in setup_convolution2d_nchw() local
652 if (zero_buffer == NULL) { in setup_convolution2d_nchw()
658 memset(zero_buffer, 0, zero_size); in setup_convolution2d_nchw()
659 convolution_op->zero_buffer = zero_buffer; in setup_convolution2d_nchw()
666 .zero = zero_buffer, in setup_convolution2d_nchw()
704 void* zero_buffer = xnn_reallocate_memory(convolution_op->zero_buffer, zero_size); in setup_convolution2d_nchw() local
705 if (zero_buffer == NULL) { in setup_convolution2d_nchw()
711 memset(zero_buffer, 0, zero_size); in setup_convolution2d_nchw()
712 convolution_op->zero_buffer = zero_buffer; in setup_convolution2d_nchw()
719 .zero = zero_buffer, in setup_convolution2d_nchw()
Daverage-pooling-nhwc.c194 void* zero_buffer = xnn_allocate_simd_memory(zero_bytes); in xnn_create_average_pooling2d_nhwc_qu8() local
195 if (zero_buffer == NULL) { in xnn_create_average_pooling2d_nhwc_qu8()
201 memset(zero_buffer, input_zero_point, channels * sizeof(uint8_t)); in xnn_create_average_pooling2d_nhwc_qu8()
202 average_pooling_op->zero_buffer = zero_buffer; in xnn_create_average_pooling2d_nhwc_qu8()
390 void* zero_buffer = xnn_allocate_zero_simd_memory(zero_bytes); in xnn_create_average_pooling2d_nhwc_f16() local
391 if (zero_buffer == NULL) { in xnn_create_average_pooling2d_nhwc_f16()
397 average_pooling_op->zero_buffer = zero_buffer; in xnn_create_average_pooling2d_nhwc_f16()
566 void* zero_buffer = xnn_allocate_zero_simd_memory(zero_bytes); in xnn_create_average_pooling2d_nhwc_f32() local
567 if (zero_buffer == NULL) { in xnn_create_average_pooling2d_nhwc_f32()
573 average_pooling_op->zero_buffer = zero_buffer; in xnn_create_average_pooling2d_nhwc_f32()
[all …]
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()
177 .zero = global_average_pooling_op->zero_buffer, in setup_global_average_pooling_nwc()
Ddeconvolution-nhwc.c232 deconvolution_op->zero_buffer = xnn_allocate_simd_memory(zero_size); in create_deconvolution2d_nhwc()
233 if (deconvolution_op->zero_buffer == NULL) { in create_deconvolution2d_nhwc()
239 memset(deconvolution_op->zero_buffer, input_padding_byte, zero_size); in create_deconvolution2d_nhwc()
729 .zero = deconvolution_op->zero_buffer, in setup_conv_path()
975 .zero = deconvolution_op->zero_buffer, in setup_subconv2d_path()
Dconvolution-nhwc.c609 convolution_op->zero_buffer = xnn_allocate_simd_memory(zero_size); in create_convolution2d_nhwc()
610 if (convolution_op->zero_buffer == NULL) { in create_convolution2d_nhwc()
616 memset(convolution_op->zero_buffer, input_padding_byte, zero_size); in create_convolution2d_nhwc()
1594 .zero = convolution_op->zero_buffer, in setup_convolution2d_nhwc()
1749 .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/crosvm/audio_util/src/
Dfile_streams.rs245 zero_buffer: Vec<u8>, field
252 zero_buffer: vec![0; buffer_mem_length], in new()
259 return &mut self.zero_buffer; in get_slice_mut()
/external/XNNPACK/src/
Doperator-delete.c36 xnn_release_simd_memory(op->zero_buffer); in xnn_delete_operator()
Dindirection.c28 const void* zero = op->zero_buffer; in xnn_indirection_init_conv2d()
89 const void* zero = op->zero_buffer; in xnn_indirection_init_deconv2d()
145 const void* zero = op->zero_buffer; in xnn_indirection_init_subconv2d()
211 const void* zero = op->zero_buffer; in xnn_indirection_init_dwconv2d()
/external/XNNPACK/src/xnnpack/
Doperator.h182 void* zero_buffer; member
/external/XNNPACK/bench/
Df16-dwconv.cc107 convolution_op.zero_buffer = z.data(); in f16_dwconv()
Df16-igemm.cc102 convolution_op.zero_buffer = z.data(); in f16_igemm()
Df32-dwconv.cc99 convolution_op.zero_buffer = z.data(); in f32_dwconv()
Df32-igemm.cc99 convolution_op.zero_buffer = z.data(); in f32_igemm()
229 convolution_op.zero_buffer = z.data(); in f32_igemm()
Dqs8-dwconv.cc105 convolution_op.zero_buffer = z.data(); in DWConvBenchmark()