/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/FuzzMutate/ |
D | Random.h | 37 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/ |
D | weighted_quantiles_summary_test.cc | 89 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()
|
D | weighted_quantiles_summary.h | 204 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
|
D | weighted_quantiles_stream_test.cc | 121 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/ |
D | weighted_quantiles_summary_test.cc | 90 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()
|
D | weighted_quantiles_summary.h | 196 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
|
D | weighted_quantiles_stream_test.cc | 122 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/ |
D | SampleProfile.cpp | 814 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/ |
D | SampleProfile.cpp | 1014 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/ |
D | InlineCost.cpp | 637 uint64_t TotalWeight; in updateThreshold() local 638 if (CS.getInstruction()->extractProfTotalWeight(TotalWeight) && in updateThreshold() 639 PSI->isHotCount(TotalWeight)) in updateThreshold()
|