Home
last modified time | relevance | path

Searched refs:wrapper (Results 1 – 25 of 2301) sorted by relevance

12345678910>>...93

/external/ComputeLibrary/src/cpu/kernels/scale/neon/
Dqasymm8.cpp102 …using FloatTagType = typename wrapper::traits::neon_bitvector_tag_t<float, wrapper::traits::BitWid… in qasymm8_neon_scale_bilinear()
103 …using Int32TagType = typename wrapper::traits::neon_bitvector_tag_t<int32_t, wrapper::traits::BitW… in qasymm8_neon_scale_bilinear()
135 const float32x4_t vscale_in = wrapper::vdup_n(iq_info.scale, FloatTagType{}); in qasymm8_neon_scale_bilinear()
136 …const int32x4_t voffset_in = wrapper::vdup_n(iq_info.offset, Int32TagType{}); // Offsets will be… in qasymm8_neon_scale_bilinear()
138 const float32x4_t invvscale_o = wrapper::vdup_n(1.f / oq_info.scale, FloatTagType{}); in qasymm8_neon_scale_bilinear()
181 const auto s00 = wrapper::vdup_n(s00_s, FloatTagType{}); in qasymm8_neon_scale_bilinear()
182 const auto s01 = wrapper::vdup_n(s01_s, FloatTagType{}); in qasymm8_neon_scale_bilinear()
183 const auto s10 = wrapper::vdup_n(s10_s, FloatTagType{}); in qasymm8_neon_scale_bilinear()
184 const auto s11 = wrapper::vdup_n(s11_s, FloatTagType{}); in qasymm8_neon_scale_bilinear()
199 const auto in00 = wrapper::vloadq(in_ptr_xi0_yi0 + cout * sizeof(uint8_t)); in qasymm8_neon_scale_bilinear()
[all …]
Dqasymm8_signed.cpp101 …using FloatTagType = typename wrapper::traits::neon_bitvector_tag_t<float, wrapper::traits::BitWid… in qasymm8_signed_neon_scale_bilinear()
102 …using Int32TagType = typename wrapper::traits::neon_bitvector_tag_t<int32_t, wrapper::traits::BitW… in qasymm8_signed_neon_scale_bilinear()
137 const float32x4_t vscale_in = wrapper::vdup_n(iq_info.scale, FloatTagType{}); in qasymm8_signed_neon_scale_bilinear()
138 …const int32x4_t voffset_in = wrapper::vdup_n(iq_info.offset, Int32TagType{}); // Offsets will be… in qasymm8_signed_neon_scale_bilinear()
140 const float32x4_t invvscale_o = wrapper::vdup_n(1.f / oq_info.scale, FloatTagType{}); in qasymm8_signed_neon_scale_bilinear()
180 const auto s00 = wrapper::vdup_n(s00_s, FloatTagType{}); in qasymm8_signed_neon_scale_bilinear()
181 const auto s01 = wrapper::vdup_n(s01_s, FloatTagType{}); in qasymm8_signed_neon_scale_bilinear()
182 const auto s10 = wrapper::vdup_n(s10_s, FloatTagType{}); in qasymm8_signed_neon_scale_bilinear()
183 const auto s11 = wrapper::vdup_n(s11_s, FloatTagType{}); in qasymm8_signed_neon_scale_bilinear()
198 const auto in00 = wrapper::vloadq(in_ptr_xi0_yi0 + cout * sizeof(int8_t)); in qasymm8_signed_neon_scale_bilinear()
[all …]
Dinteger.cpp67 wrapper::vstore(reinterpret_cast<uint8_t *>(out.ptr()) + x, in u8_neon_scale_nearest()
68 wrapper::vloadq(in_ptr + offset + offset_row + x)); in u8_neon_scale_nearest()
122 …using ExactTagType = typename wrapper::traits::neon_bitvector_tag_t<float, wrapper::traits::BitWid… in u8_neon_scale_bilinear()
192 const auto s00 = wrapper::vdup_n(s00_s, ExactTagType{}); in u8_neon_scale_bilinear()
193 const auto s01 = wrapper::vdup_n(s01_s, ExactTagType{}); in u8_neon_scale_bilinear()
194 const auto s10 = wrapper::vdup_n(s10_s, ExactTagType{}); in u8_neon_scale_bilinear()
195 const auto s11 = wrapper::vdup_n(s11_s, ExactTagType{}); in u8_neon_scale_bilinear()
210 const auto in00 = wrapper::vloadq(in_ptr_xi0_yi0 + cout * sizeof(uint8_t)); in u8_neon_scale_bilinear()
211 const auto in01 = wrapper::vloadq(in_ptr_xi1_yi0 + cout * sizeof(uint8_t)); in u8_neon_scale_bilinear()
212 const auto in10 = wrapper::vloadq(in_ptr_xi0_yi1 + cout * sizeof(uint8_t)); in u8_neon_scale_bilinear()
[all …]
/external/ComputeLibrary/src/core/NEON/kernels/
DNEReductionOperationKernel.cpp53 auto res = wrapper::vcombine(wrapper::vqmovun(t1), wrapper::vqmovun(t2)); in combine_and_store()
54 wrapper::vstore(output.ptr() + offset, res); in combine_and_store()
58 auto res = wrapper::vcombine(wrapper::vqmovn(t1), wrapper::vqmovn(t2)); in combine_and_store()
59 wrapper::vstore(reinterpret_cast<int8_t *>(output.ptr() + offset), res); in combine_and_store()
69 mask = wrapper::vcgt(b, a); in calculate_index()
73 mask = wrapper::vclt(b, a); in calculate_index()
79 vec_idx = wrapper::vdup_n(idx, wrapper::traits::vector_128_tag{}); in calculate_index()
81 uint32x4x4_t res = { { wrapper::vbsl(mask, vec_idx, c.val[0]), 0, 0, 0 } }; in calculate_index()
93 mask_u8 = wrapper::vcgt(b, a); in calculate_index_quantized()
97 mask_u8 = wrapper::vclt(b, a); in calculate_index_quantized()
[all …]
DNEFFTRadixStageKernel.cpp71 using ExactTagType = typename wrapper::traits::neon_vector<float, 2>::tag_type; in c_mul_neon()
74 const float32x2_t tmp0 = wrapper::vdup_n(wrapper::vgetlane(a, 0), ExactTagType{}); in c_mul_neon()
75 const float32x2_t tmp1 = wrapper::vdup_n(wrapper::vgetlane(a, 1), ExactTagType{}); in c_mul_neon()
77 float32x2_t res = wrapper::vmul(tmp0, b); in c_mul_neon()
79 b = wrapper::vrev64(b); in c_mul_neon()
80 b = wrapper::vmul(b, mask); in c_mul_neon()
81 res = wrapper::vmla(res, tmp1, b); in c_mul_neon()
88 const float a_r = wrapper::vgetlane(a, 0); in c_mul_neon_img()
89 const float a_i = wrapper::vgetlane(a, 1); in c_mul_neon_img()
91 …const auto out = wrapper::vmul(float32x2_t{ -a_i, a_r }, float32x2_t{ img_constant, img_constant }… in c_mul_neon_img()
[all …]
/external/ComputeLibrary/src/cpu/kernels/activation/generic/neon/
Dqasymm8.cpp92 wrapper::traits::neon_bitvector_t<qasymm8_t, wrapper::traits::BitWidth::W128> tmp; in neon_qasymm8_activation()
98 const auto vin = wrapper::vloadq(input_ptr + x); in neon_qasymm8_activation()
129wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[0])))), in neon_qasymm8_activation()
130wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[1])))), in neon_qasymm8_activation()
131wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[2])))), in neon_qasymm8_activation()
132wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[3])))), in neon_qasymm8_activation()
147wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[0], vb_f32))), in neon_qasymm8_activation()
148wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[1], vb_f32))), in neon_qasymm8_activation()
149wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[2], vb_f32))), in neon_qasymm8_activation()
150wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[3], vb_f32))), in neon_qasymm8_activation()
[all …]
Dimpl.h46 return vreinterpretq_f32_u32(wrapper::vand(int_in, mask)); in mask_float_vector()
52 return vreinterpretq_f16_u16(wrapper::vand(int_in, mask)); in mask_float_vector()
61 … = typename arm_compute::wrapper::traits::neon_bitvector_tag_t<T, wrapp… in fp_neon_activation_impl()
74 const auto delta = wrapper::vdup_n(static_cast<T>(P.delta), ExactTagType {}); in fp_neon_activation_impl()
76 const auto const_inv_2 = wrapper::vdup_n(static_cast<T>(0.5f), ExactTagType {}); in fp_neon_activation_impl()
77 const auto const_inv_sqrt_2 = wrapper::vdup_n(static_cast<T>(0.70710678118f), ExactTagType{}); in fp_neon_activation_impl()
79 const auto const_1 = wrapper::vdup_n(static_cast<T>(1.f), ExactTagType {}); in fp_neon_activation_impl()
80 const auto const_0 = wrapper::vdup_n(static_cast<T>(0.f), ExactTagType{}); in fp_neon_activation_impl()
81 const auto const_6 = wrapper::vdup_n(static_cast<T>(6.f), ExactTagType{}); in fp_neon_activation_impl()
82 const auto const_3 = wrapper::vdup_n(static_cast<T>(3.f), ExactTagType{}); in fp_neon_activation_impl()
[all …]
Dqasymm8_signed.cpp83 wrapper::traits::neon_bitvector_t<qasymm8_signed_t, wrapper::traits::BitWidth::W128> tmp; in neon_qasymm8_signed_activation()
89 const auto vin = wrapper::vloadq(input_ptr + x); in neon_qasymm8_signed_activation()
120wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[0])))), in neon_qasymm8_signed_activation()
121wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[1])))), in neon_qasymm8_signed_activation()
122wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[2])))), in neon_qasymm8_signed_activation()
123wrapper::vdiv(vconst_1, wrapper::vadd(vconst_1, wrapper::vexpq(wrapper::vneg(vin_deq.val[3])))), in neon_qasymm8_signed_activation()
138wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[0], vb_f32))), in neon_qasymm8_signed_activation()
139wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[1], vb_f32))), in neon_qasymm8_signed_activation()
140wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[2], vb_f32))), in neon_qasymm8_signed_activation()
141wrapper::vmul(va_f32, wrapper::vtanh(wrapper::vmul(vin_deq.val[3], vb_f32))), in neon_qasymm8_signed_activation()
[all …]
/external/ComputeLibrary/src/cpu/kernels/
DCpuGemmLowpMatrixReductionKernel.cpp111 using TIAcc = wrapper::traits::promote_t<T>; in run_internal()
112 using TAcc = wrapper::traits::promote_t<TIAcc>; in run_internal()
126 auto vsum_row = wrapper::vdup_n(static_cast<TAcc>(0), wrapper::traits::vector_128_tag{}); in run_internal()
139 const auto a0_d8 = wrapper::vloadq(matrix_a + i); in run_internal()
142 const auto tmp_sum0 = wrapper::vaddl(wrapper::vgetlow(a0_d8), wrapper::vgethigh(a0_d8)); in run_internal()
145 vsum_row = wrapper::vadd(vsum_row, wrapper::vpaddl(tmp_sum0)); in run_internal()
156 sum_row += wrapper::vaddv(vsum_row); in run_internal()
158 auto tmp = wrapper::vpadd(wrapper::vgethigh(vsum_row), wrapper::vgetlow(vsum_row)); in run_internal()
159 tmp = wrapper::vpadd(tmp, tmp); in run_internal()
161 sum_row += wrapper::vgetlane(tmp, 0); in run_internal()
[all …]
/external/jemalloc_new/include/jemalloc/internal/
Dtsd_generic.h33 tsd_wrapper_t *wrapper = (tsd_wrapper_t *)arg; in tsd_cleanup_wrapper() local
35 if (wrapper->initialized) { in tsd_cleanup_wrapper()
36 wrapper->initialized = false; in tsd_cleanup_wrapper()
37 tsd_cleanup(&wrapper->val); in tsd_cleanup_wrapper()
38 if (wrapper->initialized) { in tsd_cleanup_wrapper()
40 if (pthread_setspecific(tsd_tsd, (void *)wrapper) != 0) in tsd_cleanup_wrapper()
50 malloc_tsd_dalloc(wrapper); in tsd_cleanup_wrapper()
54 tsd_wrapper_set(tsd_wrapper_t *wrapper) { in tsd_wrapper_set() argument
55 if (pthread_setspecific(tsd_tsd, (void *)wrapper) != 0) { in tsd_wrapper_set()
63 tsd_wrapper_t *wrapper = (tsd_wrapper_t *)pthread_getspecific(tsd_tsd); in tsd_wrapper_get() local
[all …]
Dtsd_win.h19 tsd_wrapper_t *wrapper = (tsd_wrapper_t *)TlsGetValue(tsd_tsd); in tsd_cleanup_wrapper() local
22 if (wrapper == NULL) { in tsd_cleanup_wrapper()
26 if (wrapper->initialized) { in tsd_cleanup_wrapper()
27 wrapper->initialized = false; in tsd_cleanup_wrapper()
28 tsd_cleanup(&wrapper->val); in tsd_cleanup_wrapper()
29 if (wrapper->initialized) { in tsd_cleanup_wrapper()
34 malloc_tsd_dalloc(wrapper); in tsd_cleanup_wrapper()
39 tsd_wrapper_set(tsd_wrapper_t *wrapper) { in tsd_wrapper_set() argument
40 if (!TlsSetValue(tsd_tsd, (void *)wrapper)) { in tsd_wrapper_set()
49 tsd_wrapper_t *wrapper = (tsd_wrapper_t *) TlsGetValue(tsd_tsd); in tsd_wrapper_get() local
[all …]
/external/ComputeLibrary/src/cpu/kernels/conv3d/neon/
Dquantized.h46 …using vtype = wrapper::traits::neon_bitvector<T, wrapper::traits::B… in directconv3d_quantized_neon_ndhwc()
50 using q16_t = typename wrapper::traits::promote_t<T>; in directconv3d_quantized_neon_ndhwc()
51 using q32_t = typename wrapper::traits::promote_t<q16_t>; in directconv3d_quantized_neon_ndhwc()
52 …using q32x4_t = typename wrapper::traits::neon_vector<q32_t, 4>::type; in directconv3d_quantized_neon_ndhwc()
162 … vector_type w_vec = wrapper::vdup_n(static_cast<T>(0), tag_type()); in directconv3d_quantized_neon_ndhwc()
164 q32x4_t acc_q32_0 = wrapper::vdup_n(static_cast<q32_t>(0), tag_type()); in directconv3d_quantized_neon_ndhwc()
165 q32x4_t acc_q32_1 = wrapper::vdup_n(static_cast<q32_t>(0), tag_type()); in directconv3d_quantized_neon_ndhwc()
166 q32x4_t acc_q32_2 = wrapper::vdup_n(static_cast<q32_t>(0), tag_type()); in directconv3d_quantized_neon_ndhwc()
167 q32x4_t acc_q32_3 = wrapper::vdup_n(static_cast<q32_t>(0), tag_type()); in directconv3d_quantized_neon_ndhwc()
172 const auto src_vec = wrapper::vloadq(in_ptr_mover); in directconv3d_quantized_neon_ndhwc()
[all …]
/external/crosvm/media/libva/src/
Dbuffer.rs32 PictureParameter::MPEG2(ref mut wrapper) => ( in new()
33 wrapper.inner_mut() as *mut _ as *mut std::ffi::c_void, in new()
34 std::mem::size_of_val(wrapper.inner_mut()), in new()
36 PictureParameter::VP8(ref mut wrapper) => ( in new()
37 wrapper.inner_mut() as *mut _ as *mut std::ffi::c_void, in new()
38 std::mem::size_of_val(wrapper.inner_mut()), in new()
40 PictureParameter::VP9(ref mut wrapper) => ( in new()
41 wrapper.inner_mut() as *mut _ as *mut std::ffi::c_void, in new()
42 std::mem::size_of_val(wrapper.inner_mut()), in new()
44 PictureParameter::H264(ref mut wrapper) => ( in new()
[all …]
/external/ComputeLibrary/src/cpu/kernels/pool2d/neon/
Dquantized.h56 using q8x8_t = typename wrapper::traits::neon_vector<T, 8>::type; in poolingMxN_q8_neon_nhwc()
57 using q8x16_t = typename wrapper::traits::neon_vector<T, 16>::type; in poolingMxN_q8_neon_nhwc()
58 using q16_t = typename wrapper::traits::promote_t<T>; in poolingMxN_q8_neon_nhwc()
59 using q16x8_t = typename wrapper::traits::neon_vector<q16_t, 8>::type; in poolingMxN_q8_neon_nhwc()
60 using q32_t = typename wrapper::traits::promote_t<q16_t>; in poolingMxN_q8_neon_nhwc()
61 using q32x4_t = typename wrapper::traits::neon_vector<q32_t, 4>::type; in poolingMxN_q8_neon_nhwc()
106 … q32x4_t vres1 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in poolingMxN_q8_neon_nhwc()
107 … q32x4_t vres2 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in poolingMxN_q8_neon_nhwc()
108 … q32x4_t vres3 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in poolingMxN_q8_neon_nhwc()
109 … q32x4_t vres4 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in poolingMxN_q8_neon_nhwc()
[all …]
/external/ComputeLibrary/src/core/NEON/kernels/detail/
DNEDirectConvolutionDetail.h471 …using OutputTagType = typename wrapper::traits::neon_bitvector_tag_t<int32_t, wrapper::traits::Bit… in single_convolve_3x3_dilation()
473 const int32x4_t v_input_offset = wrapper::vdup_n(input_offset, OutputTagType{}); in single_convolve_3x3_dilation()
478 wrapper::vload(in_top), in single_convolve_3x3_dilation()
479 wrapper::vload(in_top + dilation_x), in single_convolve_3x3_dilation()
480 wrapper::vload(in_top + 2 * dilation_x) in single_convolve_3x3_dilation()
486 wrapper::vload(in_mid), in single_convolve_3x3_dilation()
487 wrapper::vload(in_mid + dilation_x), in single_convolve_3x3_dilation()
488 wrapper::vload(in_mid + 2 * dilation_x) in single_convolve_3x3_dilation()
494 wrapper::vload(in_low), in single_convolve_3x3_dilation()
495 wrapper::vload(in_low + dilation_x), in single_convolve_3x3_dilation()
[all …]
DNEActivationFunctionDetail.h38 using ExactType = typename wrapper::traits::neon_vector<T, S>::type;
72 using ExactType = typename wrapper::traits::neon_vector<T, S>::type;
74 using ExactTagType = typename wrapper::traits::neon_vector<T, S>::tag_type;
83 valpha(wrapper::vdup_n(static_cast<T>(alpha), ExactTagType{})), in linear()
84 vbeta(wrapper::vdup_n(static_cast<T>(beta), ExactTagType{}))
94 vval = wrapper::vmla(vbeta, vval, valpha); in operator()
116 using ExactType = typename wrapper::traits::neon_vector<T, S>::type;
118 using ExactTagType = typename wrapper::traits::neon_vector<T, S>::tag_type;
135 vval = wrapper::vmul(vval, vval); in operator()
152 using ExactType = typename wrapper::traits::neon_vector<T, S>::type;
[all …]
/external/libvpx/test/
Dpartial_idct_test.cc40 void wrapper(const tran_low_t *in, uint8_t *out, int stride, int bd) { in wrapper() function
449 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
450 &wrapper<vpx_idct32x32_1024_add_c>, TX_32X32, 1024, 8, 1),
451 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
452 &wrapper<vpx_idct32x32_135_add_c>, TX_32X32, 135, 8, 1),
453 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
454 &wrapper<vpx_idct32x32_34_add_c>, TX_32X32, 34, 8, 1),
455 make_tuple(&vpx_fdct32x32_c, &wrapper<vpx_idct32x32_1024_add_c>,
456 &wrapper<vpx_idct32x32_1_add_c>, TX_32X32, 1, 8, 1),
457 make_tuple(&vpx_fdct16x16_c, &wrapper<vpx_idct16x16_256_add_c>,
[all …]
/external/ComputeLibrary/src/cpu/kernels/instancenorm/generic/neon/
Dimpl.cpp36 result = wrapper::vadd(result, inputs); in vector_float_sum()
37 result_square = wrapper::vadd(result_square, wrapper::vmul(inputs, inputs)); in vector_float_sum()
44 vector_float_sum(result, result_square, wrapper::vcvt<float>(wrapper::vgetlow(inputs))); in vector_float_sum()
45 vector_float_sum(result, result_square, wrapper::vcvt<float>(wrapper::vgethigh(inputs))); in vector_float_sum()
50 const auto input_low = wrapper::vcvt<float>(wrapper::vgetlow(inputs)); in vector_float_norm()
51 const auto input_high = wrapper::vcvt<float>(wrapper::vgethigh(inputs)); in vector_float_norm()
52 …const auto result_low = wrapper::vcvt<float16_t>(vector_float_norm(input_low, vec_mean, vec_mult… in vector_float_norm()
53 …const auto result_high = wrapper::vcvt<float16_t>(vector_float_norm(input_high, vec_mean, vec_mul… in vector_float_norm()
54 float16x8_t result = wrapper::vcombine(result_low, result_high); in vector_float_norm()
63 return wrapper::vadd(wrapper::vmul(wrapper::vsub(inputs, vec_mean), vec_multip), vec_beta); in vector_float_norm()
[all …]
/external/pigweed/pw_protobuf_compiler/
Dnested_packages_test.cc32 AggregateWrapper wrapper = { in TEST() local
45 EXPECT_EQ(wrapper.id.id, 0u); in TEST()
46 EXPECT_EQ(wrapper.id.impl.foo, 1); in TEST()
47 EXPECT_EQ(wrapper.id.impl.bar, 2); in TEST()
48 EXPECT_EQ(wrapper.type, TypeOfThing::kOther); in TEST()
50 EXPECT_EQ(wrapper.aggregate.id.id, 1u); in TEST()
51 EXPECT_EQ(wrapper.aggregate.id.impl.foo, 2); in TEST()
52 EXPECT_EQ(wrapper.aggregate.id.impl.bar, 3); in TEST()
53 EXPECT_EQ(wrapper.aggregate.type, TypeOfThing::kOther); in TEST()
55 EXPECT_EQ(wrapper.aggregate.alice.id.id, 2u); in TEST()
[all …]
/external/ComputeLibrary/src/cpu/kernels/pool3d/neon/
Dquantized.h42 using q8x8_t = typename wrapper::traits::neon_vector<T, 8>::type; in avg_poolingMxNxD_q8_neon_ndhwc()
43 using q8x16_t = typename wrapper::traits::neon_vector<T, 16>::type; in avg_poolingMxNxD_q8_neon_ndhwc()
44 using q16_t = typename wrapper::traits::promote_t<T>; in avg_poolingMxNxD_q8_neon_ndhwc()
45 using q16x8_t = typename wrapper::traits::neon_vector<q16_t, 8>::type; in avg_poolingMxNxD_q8_neon_ndhwc()
46 using q32_t = typename wrapper::traits::promote_t<q16_t>; in avg_poolingMxNxD_q8_neon_ndhwc()
47 using q32x4_t = typename wrapper::traits::neon_vector<q32_t, 4>::type; in avg_poolingMxNxD_q8_neon_ndhwc()
124 … q32x4_t vres1 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in avg_poolingMxNxD_q8_neon_ndhwc()
125 … q32x4_t vres2 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in avg_poolingMxNxD_q8_neon_ndhwc()
126 … q32x4_t vres3 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in avg_poolingMxNxD_q8_neon_ndhwc()
127 … q32x4_t vres4 = wrapper::vdup_n(static_cast<q32_t>(0.f), wrapper::traits::vector_128_tag{}); in avg_poolingMxNxD_q8_neon_ndhwc()
[all …]
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DInterpreterImpl.java72 wrapper = new NativeInterpreterWrapper(modelFile.getAbsolutePath(), options); in InterpreterImpl()
88 wrapper = new NativeInterpreterWrapper(byteBuffer, options); in InterpreterImpl()
91 InterpreterImpl(NativeInterpreterWrapper wrapper) { in InterpreterImpl() argument
92 this.wrapper = wrapper; in InterpreterImpl()
107 wrapper.run(inputs, outputs); in runForMultipleInputsOutputs()
113 wrapper.allocateTensors(); in allocateTensors()
119 wrapper.resizeInput(idx, dims, false); in resizeInput()
125 wrapper.resizeInput(idx, dims, strict); in resizeInput()
131 return wrapper.getInputTensorCount(); in getInputTensorCount()
137 return wrapper.getInputIndex(opName); in getInputIndex()
[all …]
/external/python/cachetools/tests/
Dtest_wrapper.py20 wrapper = cachetools.cached(cache)(self.func)
23 self.assertEqual(wrapper.__wrapped__, self.func)
25 self.assertEqual(wrapper(0), 0)
31 self.assertEqual(wrapper(1), 1)
37 self.assertEqual(wrapper(1), 1)
40 self.assertEqual(wrapper(1.0), 1)
43 self.assertEqual(wrapper(1.0), 1)
49 wrapper = cachetools.cached(cache, key=key)(self.func)
52 self.assertEqual(wrapper.__wrapped__, self.func)
54 self.assertEqual(wrapper(0), 0)
[all …]
/external/webrtc/modules/video_coding/svc/
Dscalability_structure_key_svc_unittest.cc31 ScalabilityStructureWrapper wrapper(structure); in TEST() local
35 wrapper.GenerateFrames(/*num_temporal_units=*/2, frames); in TEST()
38 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
41 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
51 EXPECT_TRUE(wrapper.FrameReferencesAreValid(frames)); in TEST()
58 ScalabilityStructureWrapper wrapper(structure); in TEST() local
61 wrapper.GenerateFrames(/*num_temporal_units=*/2, frames); in TEST()
66 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
69 EXPECT_TRUE(wrapper.FrameReferencesAreValid(frames)); in TEST()
76 ScalabilityStructureWrapper wrapper(structure); in TEST() local
[all …]
/external/grpc-grpc/src/ruby/ext/grpc/
Drb_compression_options.c58 grpc_rb_compression_options* wrapper = NULL; in grpc_rb_compression_options_free() local
62 wrapper = (grpc_rb_compression_options*)p; in grpc_rb_compression_options_free()
64 if (wrapper->wrapped != NULL) { in grpc_rb_compression_options_free()
65 gpr_free(wrapper->wrapped); in grpc_rb_compression_options_free()
66 wrapper->wrapped = NULL; in grpc_rb_compression_options_free()
90 grpc_rb_compression_options* wrapper = NULL; in grpc_rb_compression_options_alloc() local
94 wrapper = gpr_malloc(sizeof(grpc_rb_compression_options)); in grpc_rb_compression_options_alloc()
95 wrapper->wrapped = NULL; in grpc_rb_compression_options_alloc()
96 wrapper->wrapped = gpr_malloc(sizeof(grpc_compression_options)); in grpc_rb_compression_options_alloc()
97 grpc_compression_options_init(wrapper->wrapped); in grpc_rb_compression_options_alloc()
[all …]
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DSnippetFormatter.java111 SnippetWrapper wrapper = snippetWrapper(kind, source, initialIndent); in format() local
112 ranges = offsetRanges(ranges, wrapper.offset); in format()
114 String replacement = formatter.formatSource(wrapper.contents.toString(), ranges); in format()
117 wrapper.offset, in format()
118 replacement.length() - (wrapper.contents.length() - wrapper.offset - source.length())); in format()
169 SnippetWrapper wrapper = new SnippetWrapper(); in snippetWrapper() local
171 wrapper.append("class Dummy {\n").append(createIndentationString(i)); in snippetWrapper()
173 wrapper.appendSource(source); in snippetWrapper()
174 wrapper.closeBraces(initialIndent); in snippetWrapper()
175 return wrapper; in snippetWrapper()
[all …]

12345678910>>...93