Home
last modified time | relevance | path

Searched refs:weight_sum (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/sched/eas/
Dsched_cfs_prio.c90 int i, j, weight_sum; in parse_results() local
140 weight_sum = 0; in parse_results()
142 weight_sum += prio_to_weight[i]; in parse_results()
150 expected_us[i] /= weight_sum; in parse_results()
/external/webrtc/rtc_base/
Drolling_accumulator.h115 double weight_sum = 0.0; in ComputeWeightedMean() local
119 weight_sum += current_weight; in ComputeWeightedMean()
124 return weighted_mean / weight_sum; in ComputeWeightedMean()
/external/grpc-grpc/src/python/grpcio_tests/tests/stress/
Dtest_runner.py23 weight_sum = sum(weighted_cases.itervalues())
26 val = random.uniform(0, weight_sum)
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dreduction.py101 weight_sum = math_ops.reduce_sum(weights, axis=self.axis)
102 return math_ops.divide(input_sum, weight_sum)
/external/tensorflow/tensorflow/python/ops/
Dembedding_ops.py547 weight_sum = math_ops.segment_sum(weights, segment_ids)
548 embeddings = math_ops.divide(embeddings, weight_sum, name=name)
552 weight_sum = math_ops.segment_sum(weights_squared, segment_ids)
553 weight_sum_sqrt = math_ops.sqrt(weight_sum)
Dnn_batchnorm_test.py687 weight_sum = _np_weighted_sum(np.ones_like(x_numpy))
688 expected_mean = _np_weighted_sum(x_numpy) / weight_sum
691 weight_sum)
/external/tensorflow/tensorflow/core/kernels/image/
Dresize_bicubic_op.cc116 const float weight_sum = in GetWeightsAndIndices() local
118 if (std::abs(weight_sum) >= 1000.0f * std::numeric_limits<float>::min()) { in GetWeightsAndIndices()
119 const float one_over_weight_sum = 1.0f / weight_sum; in GetWeightsAndIndices()
/external/zstd/doc/educational_decoder/
Dzstd_decompress.c1970 u64 weight_sum = 0; in HUF_init_dtable_usingweights() local
1976 weight_sum += weights[i] > 0 ? (u64)1 << (weights[i] - 1) : 0; in HUF_init_dtable_usingweights()
1980 const int max_bits = highest_set_bit(weight_sum) + 1; in HUF_init_dtable_usingweights()
1981 const u64 left_over = ((u64)1 << max_bits) - weight_sum; in HUF_init_dtable_usingweights()