Home
last modified time | relevance | path

Searched full:weight2 (Results 1 – 25 of 75) sorted by relevance

123

/aosp_15_r20/frameworks/rs/toolkit/
H A DLut3d.cpp100 int4 weight2 = baseCoord & 0x7fff; in kernel() local
101 int4 weight1 = (int4)0x8000 - weight2; in kernel()
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()
140 ALOGE("weight2 %08x %08x %08x %08x", weight2.x, weight2.y, weight2.z, weight2.w); in kernel()
/aosp_15_r20/external/renderscript-intrinsics-replacement-toolkit/renderscript-toolkit/src/main/cpp/
H A DLut3d.cpp99 int4 weight2 = baseCoord & 0x7fff; in kernel() local
100 int4 weight1 = (int4)0x8000 - weight2; in kernel()
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()
139 ALOGE("weight2 %08x %08x %08x %08x", weight2.x, weight2.y, weight2.z, weight2.w); in kernel()
/aosp_15_r20/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsic3DLUT.cpp98 int4 weight2 = baseCoord & 0x7fff; in kernel() local
99 int4 weight1 = (int4)0x8000 - weight2; in kernel()
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()
137 ALOGE("weight2 %08x %08x %08x %08x", weight2.x, weight2.y, weight2.z, weight2.w); in kernel()
/aosp_15_r20/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dcolorcube.rscript42 int4 weight2 = baseCoord & 0xffff;
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 Dcolorcube.rscript42 int4 weight2 = baseCoord & 0xffff;
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 Dcolorcube.rscript42 int4 weight2 = baseCoord & 0xffff;
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 Dgre_multipath_nh_res.sh240 local weight2=$1; shift
243 ip nexthop replace id 103 group 101,$weight1/102,$weight2 \
258 multipath_eval "$what" $weight1 $weight2 $d111 $d222
268 local weight2=$1; shift
271 ip nexthop replace id 103 group 101,$weight1/102,$weight2 \
287 multipath_eval "$what" $weight1 $weight2 $d111 $d222
297 local weight2=$1; shift
300 ip nexthop replace id 103 group 101,$weight1/102,$weight2 \
315 multipath_eval "$what" $weight1 $weight2 $d111 $d222
H A Dgre_multipath_nh.sh238 local weight2=$1; shift
241 ip nexthop replace id 103 group 101,$weight1/102,$weight2
255 multipath_eval "$what" $weight1 $weight2 $d111 $d222
265 local weight2=$1; shift
268 ip nexthop replace id 103 group 101,$weight1/102,$weight2
283 multipath_eval "$what" $weight1 $weight2 $d111 $d222
293 local weight2=$1; shift
296 ip nexthop replace id 103 group 101,$weight1/102,$weight2
310 multipath_eval "$what" $weight1 $weight2 $d111 $d222
H A Dgre_multipath.sh211 local weight2=$1; shift
216 nexthop dev g1b weight $weight2
230 multipath_eval "$what" $weight1 $weight2 $d111 $d222
H A Dgre_inner_v4_multipath.sh258 local weight2=$1; shift
263 nexthop via 192.0.2.162 weight $weight2
278 multipath_eval "$what" $weight1 $weight2 $d111 $d222
H A Dgre_inner_v6_multipath.sh258 local weight2=$1; shift
263 nexthop via 192.0.2.162 weight $weight2
279 multipath_eval "$what" $weight1 $weight2 $d111 $d222
H A Dip6gre_inner_v6_multipath.sh257 local weight2=$1; shift
262 nexthop via 2001:db8:82::2 weight $weight2
278 multipath_eval "$what" $weight1 $weight2 $d111 $d222
H A Dip6gre_inner_v4_multipath.sh257 local weight2=$1; shift
262 nexthop via 2001:db8:82::2 weight $weight2
277 multipath_eval "$what" $weight1 $weight2 $d111 $d222
/aosp_15_r20/external/pytorch/torch/ao/quantization/
H A D_equalize.py135 weight2 = get_module_weight(module2)
137 if weight1.size(output_axis) != weight2.size(input_axis):
147 weight2_range = channel_range(weight2, input_axis)
161 size2 = [1] * weight2.ndim
162 size2[input_axis] = weight2.size(input_axis)
168 weight2 = weight2 * scaling_factors
173 set_module_weight(module2, weight2)
/aosp_15_r20/external/libxaac/decoder/
H A Dixheaacd_mps_calc_m1m2_common.c45 WORD32 *weight1, WORD32 *weight2, ia_mps_dec_mps_tables_struct *ia_mps_dec_mps_table_ptr) { in ixheaacd_get_matrix_inversion_weights() argument
107 *weight2 = 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
126 len2 = ixheaacd_mps_sqrt((ONE_IN_Q15 - (weight2 << 1) + ((weight2 * weight2) >> 14)), &q_len2, in ixheaacd_invert_matrix()
136 h22_f_imag = -(ixheaacd_mps_div32_in_q15(weight2, len2)); in ixheaacd_invert_matrix()
146 h22_f_real = ixheaacd_mps_div32_in_q15((ONE_IN_Q15 - weight2), len2); in ixheaacd_invert_matrix()
816 WORD32 weight2; in ixheaacd_calculate_mtx_inv() local
823 &weight2, &(pstr_mps_state->ia_mps_dec_mps_table)); in ixheaacd_calculate_mtx_inv()
828 &weight2, &(pstr_mps_state->ia_mps_dec_mps_table)); in ixheaacd_calculate_mtx_inv()
831 ixheaacd_invert_matrix(weight1, weight2, h_real, h_imag, in ixheaacd_calculate_mtx_inv()
H A Dixheaacd_mps_calc_m1m2_emm.c84 WORD32 weight2; in ixheaacd_calc_m1m2_emm() local
93 &weight2, &(pstr_mps_state->ia_mps_dec_mps_table)); in ixheaacd_calc_m1m2_emm()
95 ixheaacd_invert_matrix(weight1, weight2, h_real, h_imag, in ixheaacd_calc_m1m2_emm()
H A Dixheaacd_mps_calc_m1m2_common.h30 WORD32 *weight1, WORD32 *weight2, ia_mps_dec_mps_tables_struct *ia_mps_dec_mps_table_ptr);
32 VOID ixheaacd_invert_matrix(WORD32 weight1, WORD32 weight2, WORD32 h_real[][2],
/aosp_15_r20/external/pytorch/test/distributed/fsdp/
H A Dtest_fsdp_fx.py16 self.weight2 = torch.nn.Parameter(torch.randn(6, 6))
33 z = z @ self.weight2
82 (model, [("weight2", model.weight2)]),
110 model.weight2,
/aosp_15_r20/external/grpc-grpc-java/xds/src/test/java/io/grpc/xds/
H A DWeightedRoundRobinLoadBalancerTest.java377 double weight2 = 2 / (0.9 + 1.8 / 2F * 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()
422 double weight2 = 40 / (0.28 + 0.998 / 40F * 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()
442 double weight2 = 40 / (0.28 + 0.998 / 40F * 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 Dtest_common.py29 weight2 = self.fc2.weight.local_tensor()
31 weight2 = self.fc2.weight
33 return (weight1, weight2)
/aosp_15_r20/external/pytorch/test/distributed/
H A Dtest_dynamo_distributed.py342 self.weight2 = nn.Parameter(torch.randn(512, 512))
347 z = x + y @ self.weight2
362 self.weight2 = nn.Parameter(torch.randn(512, 512))
368 z = (x + y @ self.weight2) * u0
383 self.weight2 = nn.Parameter(torch.randn(512, 512))
390 z = (x + y @ self.weight2) * a.sum()
405 self.weight2 = nn.Parameter(torch.randn(512, 512))
414 y2 = y1 @ self.weight2
432 self.weight2 = nn.Parameter(torch.randn(512, 512))
438 z = (x + y @ self.weight2) * (nz + 1).sum()
/aosp_15_r20/external/intel-media-driver/media_softlet/agnostic/common/codec/hal/enc/avc/features/
H A Dencode_avc_header_packer.cpp894 int16_t weight, offset, weight2, offset2; in PredWeightTable() local
932 weight2 = slcParams->Weights[0][i][2][0]; in PredWeightTable()
935 (weight2 != (1 << slcParams->chroma_log2_weight_denom)) || in PredWeightTable()
942 PutVLCCode(bsbuffer, SIGNED(weight2)); in PredWeightTable()
968 weight2 = slcParams->Weights[1][i][2][0]; in PredWeightTable()
971 (weight2 != (1 << slcParams->chroma_log2_weight_denom)) || in PredWeightTable()
978 PutVLCCode(bsbuffer, SIGNED(weight2)); in PredWeightTable()
/aosp_15_r20/external/pytorch/test/cpp/api/
H A Dinit_baseline.py59 weight2 = layer2.weight.data.numpy()
62 return [weight1, weight2, weight3]
/aosp_15_r20/external/libavc/decoder/
H A Dih264d_inter_pred.c1321 WORD32 weight1, weight2; in ih264d_motion_compensate_mp() local
1330 weight2 = (WORD16)(u4_wt_ofst_y & 0xffff); in ih264d_motion_compensate_mp()
1340 weight1, weight2, ofst1, in ih264d_motion_compensate_mp()
1353 weight2 = ((u4_wt_ofst_v & 0xffff) << 16) in ih264d_motion_compensate_mp()
1364 weight1, weight2, ofst1, ofst2, in ih264d_motion_compensate_mp()
/aosp_15_r20/external/pytorch/aten/src/ATen/native/mkldnn/
H A DRNN.cpp51 const Tensor& weight2, in mkldnn_rnn_layer_backward() argument
298 const Tensor& weight2, in mkldnn_rnn_layer_backward() argument
341 ? _shuffle_bias(weight2, weight3, rnn.mode) in mkldnn_rnn_layer_backward()

123