Home
last modified time | relevance | path

Searched refs:TotalWeight (Results 1 – 10 of 10) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/FuzzMutate/
DRandom.h37 uint64_t TotalWeight = 0; variable
42 uint64_t totalWeight() const { return TotalWeight; } in totalWeight()
43 bool isEmpty() const { return TotalWeight == 0; } in isEmpty()
65 TotalWeight += Weight; in sample()
67 if (uniform<uint64_t>(RandGen, 1, TotalWeight) <= Weight) in sample()
/external/tensorflow/tensorflow/core/kernels/boosted_trees/quantiles/
Dweighted_quantiles_summary_test.cc89 EXPECT_EQ(summary.TotalWeight(), buffer1_total_weight_); in TEST_F()
107 EXPECT_EQ(summary.TotalWeight(), buffer1_total_weight_); in TEST_F()
125 EXPECT_EQ(summary.TotalWeight(), buffer1_total_weight_); in TEST_F()
178 EXPECT_EQ(summary1.TotalWeight(), in TEST_F()
190 EXPECT_EQ(summary2.TotalWeight(), in TEST_F()
218 EXPECT_EQ(summary1.TotalWeight(), in TEST_F()
Dweighted_quantiles_summary.h204 double eps_delta = TotalWeight() * std::max(1.0 / size_hint, min_eps);
310 return static_cast<double>(max_gap) / TotalWeight(); in ApproximationError()
321 WeightType TotalWeight() const { in TotalWeight() function
Dweighted_quantiles_stream_test.cc121 EXPECT_NEAR(stream.GetFinalSummary().TotalWeight(), total_weight, 1e-6); in TestSingleWorkerStreams()
223 EXPECT_NEAR(reducer_stream.GetFinalSummary().TotalWeight(), total_weight, in TestDistributedStreams()
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/quantiles/
Dweighted_quantiles_summary_test.cc90 EXPECT_EQ(summary.TotalWeight(), buffer1_total_weight_); in TEST_F()
108 EXPECT_EQ(summary.TotalWeight(), buffer1_total_weight_); in TEST_F()
126 EXPECT_EQ(summary.TotalWeight(), buffer1_total_weight_); in TEST_F()
179 EXPECT_EQ(summary1.TotalWeight(), in TEST_F()
191 EXPECT_EQ(summary2.TotalWeight(), in TEST_F()
219 EXPECT_EQ(summary1.TotalWeight(), in TEST_F()
Dweighted_quantiles_summary.h196 double eps_delta = TotalWeight() * std::max(1.0 / size_hint, min_eps);
302 return static_cast<double>(max_gap) / TotalWeight(); in ApproximationError()
313 WeightType TotalWeight() const { in TotalWeight() function
Dweighted_quantiles_stream_test.cc122 EXPECT_NEAR(stream.GetFinalSummary().TotalWeight(), total_weight, 1e-6); in TestSingleWorkerStreams()
224 EXPECT_NEAR(reducer_stream.GetFinalSummary().TotalWeight(), total_weight, in TestDistributedStreams()
/external/llvm/lib/Transforms/IPO/
DSampleProfile.cpp814 uint64_t TotalWeight = 0; in propagateThroughEdges() local
823 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); in propagateThroughEdges()
835 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); in propagateThroughEdges()
872 if (TotalWeight > BBWeight) { in propagateThroughEdges()
873 BBWeight = TotalWeight; in propagateThroughEdges()
889 if (BBWeight >= TotalWeight) in propagateThroughEdges()
890 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; in propagateThroughEdges()
901 if (BBWeight >= TotalWeight) in propagateThroughEdges()
902 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; in propagateThroughEdges()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DSampleProfile.cpp1014 uint64_t TotalWeight = 0; in propagateThroughEdges() local
1023 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); in propagateThroughEdges()
1035 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); in propagateThroughEdges()
1072 if (TotalWeight > BBWeight) { in propagateThroughEdges()
1073 BBWeight = TotalWeight; in propagateThroughEdges()
1089 if (BBWeight >= TotalWeight) in propagateThroughEdges()
1090 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; in propagateThroughEdges()
1125 if (BBWeight >= TotalWeight) in propagateThroughEdges()
1126 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; in propagateThroughEdges()
1134 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) { in propagateThroughEdges()
[all …]
/external/llvm/lib/Analysis/
DInlineCost.cpp637 uint64_t TotalWeight; in updateThreshold() local
638 if (CS.getInstruction()->extractProfTotalWeight(TotalWeight) && in updateThreshold()
639 PSI->isHotCount(TotalWeight)) in updateThreshold()