/aosp_15_r20/frameworks/rs/toolkit/ |
H A D | Lut3d.cpp | 101 int4 weight1 = (int4)0x8000 - weight2; in kernel() local 119 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (int4)7; in kernel() 120 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (int4)7; in kernel() 121 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (int4)7; in kernel() 122 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (int4)7; in kernel() 124 uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (int4)15; in kernel() 125 uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (int4)15; in kernel() 127 uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (int4)15; in kernel() 139 ALOGE("weight1 %08x %08x %08x %08x", weight1.x, weight1.y, weight1.z, weight1.w); in kernel()
|
/aosp_15_r20/external/renderscript-intrinsics-replacement-toolkit/renderscript-toolkit/src/main/cpp/ |
H A D | Lut3d.cpp | 100 int4 weight1 = (int4)0x8000 - weight2; in kernel() local 118 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (int4)7; in kernel() 119 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (int4)7; in kernel() 120 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (int4)7; in kernel() 121 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (int4)7; in kernel() 123 uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (int4)15; in kernel() 124 uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (int4)15; in kernel() 126 uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (int4)15; in kernel() 138 ALOGE("weight1 %08x %08x %08x %08x", weight1.x, weight1.y, weight1.z, weight1.w); in kernel()
|
/aosp_15_r20/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsic3DLUT.cpp | 99 int4 weight1 = (int4)0x8000 - weight2; in kernel() local 117 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (int4)7; in kernel() 118 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (int4)7; in kernel() 119 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (int4)7; in kernel() 120 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (int4)7; in kernel() 122 uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (int4)15; in kernel() 123 uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (int4)15; in kernel() 125 uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (int4)15; in kernel() 136 ALOGE("weight1 %08x %08x %08x %08x", weight1.x, weight1.y, weight1.z, weight1.w); in kernel()
|
/aosp_15_r20/external/libgav1/src/dsp/x86/ |
H A D | distance_weighted_blend_sse4.cc | 232 const __m128i& weight1) { in ComputeWeightedAverage8() argument 245 __m128i mult1 = _mm_mullo_epi32(prediction1, weight1); in ComputeWeightedAverage8() 253 mult1 = _mm_mullo_epi32(prediction1, weight1); in ComputeWeightedAverage8() 270 const __m128i weight1 = _mm_set1_epi32(weight_1); in DistanceWeightedBlend4xH_SSE4_1() local 279 ComputeWeightedAverage8(src_00, src_10, weight0, weight1); in DistanceWeightedBlend4xH_SSE4_1() 286 ComputeWeightedAverage8(src_01, src_11, weight0, weight1); in DistanceWeightedBlend4xH_SSE4_1() 308 const __m128i weight1 = _mm_set1_epi32(weight_1); in DistanceWeightedBlend8xH_SSE4_1() local 317 ComputeWeightedAverage8(src_00, src_10, weight0, weight1); in DistanceWeightedBlend8xH_SSE4_1() 324 ComputeWeightedAverage8(src_01, src_11, weight0, weight1); in DistanceWeightedBlend8xH_SSE4_1() 341 const __m128i weight1 = _mm_set1_epi32(weight_1); in DistanceWeightedBlendLarge_SSE4_1() local [all …]
|
/aosp_15_r20/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | colorcube.rscript | 43 int4 weight1 = (int4)0x10000 - weight2; 54 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (uint4)8; 55 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (uint4)8; 56 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (uint4)8; 57 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (uint4)8; 59 uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (uint4)16; 60 uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (uint4)16; 62 uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (uint4)16;
|
/aosp_15_r20/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | colorcube.rscript | 43 int4 weight1 = (int4)0x10000 - weight2; 54 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (uint4)8; 55 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (uint4)8; 56 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (uint4)8; 57 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (uint4)8; 59 uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (uint4)16; 60 uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (uint4)16; 62 uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (uint4)16;
|
/aosp_15_r20/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | colorcube.rscript | 43 int4 weight1 = (int4)0x10000 - weight2; 54 uint4 yz00 = ((v000 * weight1.x) + (v100 * weight2.x)) >> (uint4)8; 55 uint4 yz10 = ((v010 * weight1.x) + (v110 * weight2.x)) >> (uint4)8; 56 uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (uint4)8; 57 uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (uint4)8; 59 uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (uint4)16; 60 uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (uint4)16; 62 uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (uint4)16;
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/net/forwarding/ |
H A D | gre_multipath_nh_res.sh | 239 local weight1=$1; shift 243 ip nexthop replace id 103 group 101,$weight1/102,$weight2 \ 258 multipath_eval "$what" $weight1 $weight2 $d111 $d222 267 local weight1=$1; shift 271 ip nexthop replace id 103 group 101,$weight1/102,$weight2 \ 287 multipath_eval "$what" $weight1 $weight2 $d111 $d222 296 local weight1=$1; shift 300 ip nexthop replace id 103 group 101,$weight1/102,$weight2 \ 315 multipath_eval "$what" $weight1 $weight2 $d111 $d222
|
H A D | gre_multipath_nh.sh | 237 local weight1=$1; shift 241 ip nexthop replace id 103 group 101,$weight1/102,$weight2 255 multipath_eval "$what" $weight1 $weight2 $d111 $d222 264 local weight1=$1; shift 268 ip nexthop replace id 103 group 101,$weight1/102,$weight2 283 multipath_eval "$what" $weight1 $weight2 $d111 $d222 292 local weight1=$1; shift 296 ip nexthop replace id 103 group 101,$weight1/102,$weight2 310 multipath_eval "$what" $weight1 $weight2 $d111 $d222
|
H A D | gre_multipath.sh | 210 local weight1=$1; shift 215 nexthop dev g1a weight $weight1 \ 230 multipath_eval "$what" $weight1 $weight2 $d111 $d222
|
H A D | gre_inner_v4_multipath.sh | 257 local weight1=$1; shift 262 nexthop via 192.0.2.146 weight $weight1 \ 278 multipath_eval "$what" $weight1 $weight2 $d111 $d222
|
H A D | gre_inner_v6_multipath.sh | 257 local weight1=$1; shift 262 nexthop via 192.0.2.146 weight $weight1 \ 279 multipath_eval "$what" $weight1 $weight2 $d111 $d222
|
H A D | ip6gre_inner_v6_multipath.sh | 256 local weight1=$1; shift 261 nexthop via 2001:db8:81::2 weight $weight1 \ 278 multipath_eval "$what" $weight1 $weight2 $d111 $d222
|
/aosp_15_r20/external/pytorch/torch/ao/quantization/ |
H A D | _equalize.py | 134 weight1 = get_module_weight(module1) 137 if weight1.size(output_axis) != weight2.size(input_axis): 146 weight1_range = channel_range(weight1, output_axis) 159 size1 = [1] * weight1.ndim 160 size1[output_axis] = weight1.size(output_axis) 167 weight1 = weight1 * inverse_scaling_factors 170 set_module_weight(module1, weight1)
|
/aosp_15_r20/external/libxaac/decoder/ |
H A D | ixheaacd_mps_calc_m1m2_common.c | 45 WORD32 *weight1, WORD32 *weight2, ia_mps_dec_mps_tables_struct *ia_mps_dec_mps_table_ptr) { in ixheaacd_get_matrix_inversion_weights() argument 103 *weight1 = ixheaacd_mps_div32_in_q15(temp_2, temp_1); in ixheaacd_get_matrix_inversion_weights() 110 VOID ixheaacd_invert_matrix(WORD32 weight1, WORD32 weight2, WORD32 h_real[][2], in ixheaacd_invert_matrix() argument 123 len1 = ixheaacd_mps_sqrt((ONE_IN_Q15 - (weight1 << 1) + ((weight1 * weight1) >> 14)), &q_len1, in ixheaacd_invert_matrix() 132 h11_f_real = ixheaacd_mps_div32_in_q15((ONE_IN_Q15 - weight1), len1); in ixheaacd_invert_matrix() 134 h11_f_imag = ixheaacd_mps_div32_in_q15(weight1, len1); in ixheaacd_invert_matrix() 815 WORD32 weight1; in ixheaacd_calculate_mtx_inv() local 822 p_aux_struct->ttt_cpc_1[0][ps][pb], p_aux_struct->ttt_cpc_2[0][ps][pb], &weight1, in ixheaacd_calculate_mtx_inv() 827 p_cur_bs->cmp_ttt_cld_1_idx[0][ps][pb], p_cur_bs->cmp_ttt_cld_2_idx[0][ps][pb], &weight1, in ixheaacd_calculate_mtx_inv() 831 ixheaacd_invert_matrix(weight1, weight2, h_real, h_imag, in ixheaacd_calculate_mtx_inv()
|
/aosp_15_r20/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_decompress_symbolic.cpp | 43 vint4 weight1 = weights; in lerp_color_int() local 44 vint4 weight0 = vint4(64) - weight1; in lerp_color_int() 52 vint4 color = (color0 * weight0) + (color1 * weight1) + vint4(32); in lerp_color_int() 572 vint weight1 = vint::loada(plane1_weights + i); in compute_symbolic_block_difference_1plane_1partition() local 573 vint ep1_r = vint(ep1.lane<0>()) * weight1; in compute_symbolic_block_difference_1plane_1partition() 574 vint ep1_g = vint(ep1.lane<1>()) * weight1; in compute_symbolic_block_difference_1plane_1partition() 575 vint ep1_b = vint(ep1.lane<2>()) * weight1; in compute_symbolic_block_difference_1plane_1partition() 576 vint ep1_a = vint(ep1.lane<3>()) * weight1; in compute_symbolic_block_difference_1plane_1partition() 579 vint weight0 = vint(64) - weight1; in compute_symbolic_block_difference_1plane_1partition()
|
/aosp_15_r20/external/pytorch/test/distributed/fsdp/ |
H A D | test_fsdp_fx.py | 15 self.weight1 = torch.nn.Parameter(torch.randn(6, 6)) 30 z = z @ self.weight1 80 (model, [("weight1", model.weight1)]), 108 model.weight1,
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/tests/ |
H A D | lstm_test.py | 196 weight1 = 1. 201 m0 = self._NextM(self._inputs, weight1, m_init, c_init) 202 c0 = self._NextC(self._inputs, weight1, m_init, c_init) 204 m1 = self._NextM(self._inputs, weight1, m0, c0) 205 c1 = self._NextC(self._inputs, weight1, m0, c0) 207 m2 = self._NextM(self._inputs, weight1, m1, c1)
|
/aosp_15_r20/external/pytorch/aten/src/ATen/native/mkldnn/ |
H A D | MKLDNNConversions.cpp | 464 Tensor weight1, in mkldnn_reorder_mkldnn_rnn_layer_weight() argument 492 weight1, in mkldnn_reorder_mkldnn_rnn_layer_weight() 497 weight1.sizes(), in mkldnn_reorder_mkldnn_rnn_layer_weight() 498 weight1.options()), in mkldnn_reorder_mkldnn_rnn_layer_weight() 515 packed_w2 = weight1; in mkldnn_reorder_mkldnn_rnn_layer_weight() 517 …h_itensor_mkldnn(std::move(w2_), optTypeMetaToScalarType(weight1.options().dtype_opt()), weight1.o… in mkldnn_reorder_mkldnn_rnn_layer_weight()
|
/aosp_15_r20/external/grpc-grpc-java/xds/src/test/java/io/grpc/xds/ |
H A D | WeightedRoundRobinLoadBalancerTest.java | 376 double weight1 = 999 / (0.1 + 13 / 999F * weightedConfig.errorUtilizationPenalty); in pickByWeight_largeWeight_withEps_defaultErrorUtilizationPenalty() local 379 double totalWeight = weight1 + weight2 + weight3; in pickByWeight_largeWeight_withEps_defaultErrorUtilizationPenalty() 381 pickByWeight(report1, report2, report3, weight1 / totalWeight, weight2 / totalWeight, in pickByWeight_largeWeight_withEps_defaultErrorUtilizationPenalty() 421 double weight1 = 22 / (0.12 + 19.7 / 22F * weightedConfig.errorUtilizationPenalty); in pickByWeight_normalWeight_withEps_defaultErrorUtilizationPenalty() local 424 double totalWeight = weight1 + weight2 + weight3; in pickByWeight_normalWeight_withEps_defaultErrorUtilizationPenalty() 426 pickByWeight(report1, report2, report3, weight1 / totalWeight, weight2 / totalWeight, in pickByWeight_normalWeight_withEps_defaultErrorUtilizationPenalty() 441 double weight1 = 22 / (0.12 + 19.7 / 22F * weightedConfig.errorUtilizationPenalty); in pickByWeight_normalWeight_withEps_customErrorUtilizationPenalty() local 444 double totalWeight = weight1 + weight2 + weight3; in pickByWeight_normalWeight_withEps_customErrorUtilizationPenalty() 446 pickByWeight(report1, report2, report3, weight1 / totalWeight, weight2 / totalWeight, in pickByWeight_normalWeight_withEps_customErrorUtilizationPenalty()
|
/aosp_15_r20/external/pytorch/torch/testing/_internal/distributed/_shard/ |
H A D | test_common.py | 24 weight1 = self.fc1.weight.local_tensor() 26 weight1 = self.fc1.weight 33 return (weight1, weight2)
|
/aosp_15_r20/external/dng_sdk/source/ |
H A D | dng_hue_sat_map.cpp | 263 real64 weight1) in Interpolate() argument 266 if (weight1 >= 1.0) in Interpolate() 282 if (weight1 <= 0.0) in Interpolate() 331 real32 w1 = (real32) weight1; in Interpolate()
|
/aosp_15_r20/external/pytorch/test/distributed/ |
H A D | test_dynamo_distributed.py | 341 self.weight1 = nn.Parameter(torch.randn(512, 512)) 346 y = x @ self.weight1 361 self.weight1 = nn.Parameter(torch.randn(512, 512)) 367 y = x @ self.weight1 382 self.weight1 = nn.Parameter(torch.randn(512, 512)) 389 y = x @ self.weight1 404 self.weight1 = nn.Parameter(torch.randn(512, 512)) 412 y1 = x @ self.weight1 431 self.weight1 = nn.Parameter(torch.randn(512, 512)) 437 y = x @ self.weight1
|
/aosp_15_r20/external/libaom/av1/encoder/arm/ |
H A D | ml_neon.c | 157 const float32x4_t weight1 = in nn_propagate_4to4() local 159 mul1[i] = vmlaq_f32(mul1[i], weight1, v_input); in nn_propagate_4to4() 194 const float32x4_t weight1 = in nn_propagate_4to8() local 197 mul1[i] = vmlaq_f32(mul1[i], v_input, weight1); in nn_propagate_4to8()
|
/aosp_15_r20/external/libaom/av1/encoder/x86/ |
H A D | ml_sse3.c | 70 const __m128 weight1 = _mm_loadu_ps(&weights[(2 * i + 1) * num_inputs]); in av1_nn_propagate_4to4_sse3() local 71 const __m128 mul1 = _mm_mul_ps(weight1, inputs128); in av1_nn_propagate_4to4_sse3() 91 const __m128 weight1 = _mm_loadu_ps(&weights[(2 * i + 1) * num_inputs]); in av1_nn_propagate_4to8_sse3() local 93 const __m128 mul1 = _mm_mul_ps(inputs128, weight1); in av1_nn_propagate_4to8_sse3()
|