Home
last modified time | relevance | path

Searched refs:Probability (Results 1 – 25 of 66) sorted by relevance

123

/external/tensorflow/tensorflow/core/kernels/
Drange_sampler_test.cc37 sum += sampler_->Probability(i); in CheckProbabilitiesSumToOne()
56 EXPECT_NEAR((h[val] + 0.0) / num_samples, sampler_->Probability(val), in CheckHistogram()
84 CHECK_EQ(sampler_->Probability(i), sampler_->Probability(0)); in TEST_F()
102 float ratio = sampler_->Probability(i) / sampler_->Probability(i / 2); in TEST_F()
120 EXPECT_NEAR(sampler_->Probability(3), 0.55, 1e-4); in TEST_F()
123 ASSERT_NEAR(sampler_->Probability(i), 0.05, 1e-4); in TEST_F()
131 ASSERT_NEAR(sampler_->Probability(i), (i + 1) / 55.0, 1e-4); in TEST_F()
163 ASSERT_NEAR(sampler_->Probability(i), pow(2, i * 0.8) / 197.05, 1e-4); in TEST_F()
186 ASSERT_NEAR(sampler_->Probability(0), 0, 1e-4); in TEST_F()
189 ASSERT_NEAR(sampler_->Probability(i), pow(2, (i - 1) * 0.8) / 197.05, 1e-4); in TEST_F()
[all …]
Drange_sampler.h47 virtual float Probability(int64 value) const = 0;
121 float Probability(int64 value) const override { in Probability() function
143 float Probability(int64 value) const override;
157 float Probability(int64 value) const override;
171 float Probability(int64 value) const override;
188 float Probability(int64 value) const override;
223 float Probability(int64 value) const override;
Drange_sampler.cc112 ExpectedCountHelper(Probability(batch[i]), batch_size, num_tries); in SampleBatchGetExpectedCountAvoid()
118 ExpectedCountHelper(Probability(extras[i]), batch_size, num_tries); in SampleBatchGetExpectedCountAvoid()
154 float UniformSampler::Probability(int64 value) const { return inv_range_; } in Probability() function in tensorflow::UniformSampler
168 float LogUniformSampler::Probability(int64 value) const { in Probability() function in tensorflow::LogUniformSampler
186 float ThreadUnsafeUnigramSampler::Probability(int64 value) const { in Probability() function in tensorflow::ThreadUnsafeUnigramSampler
210 float UnigramSampler::Probability(int64 value) const { in Probability() function in tensorflow::UnigramSampler
212 return unsafe_sampler_.Probability(value); in Probability()
264 float FixedUnigramSampler::Probability(int64 value) const { in Probability() function in tensorflow::FixedUnigramSampler
/external/swiftshader/third_party/llvm-7.0/llvm/test/Other/
Dopt-O2-pipeline.ll43 ; CHECK-NEXT: Lazy Branch Probability Analysis
72 ; CHECK-NEXT: Lazy Branch Probability Analysis
78 ; CHECK-NEXT: Branch Probability Analysis
80 ; CHECK-NEXT: Lazy Branch Probability Analysis
87 ; CHECK-NEXT: Lazy Branch Probability Analysis
110 ; CHECK-NEXT: Lazy Branch Probability Analysis
128 ; CHECK-NEXT: Lazy Branch Probability Analysis
143 ; CHECK-NEXT: Lazy Branch Probability Analysis
171 ; CHECK-NEXT: Lazy Branch Probability Analysis
197 ; CHECK-NEXT: Lazy Branch Probability Analysis
[all …]
Dopt-O3-pipeline.ll45 ; CHECK-NEXT: Lazy Branch Probability Analysis
76 ; CHECK-NEXT: Lazy Branch Probability Analysis
82 ; CHECK-NEXT: Branch Probability Analysis
84 ; CHECK-NEXT: Lazy Branch Probability Analysis
91 ; CHECK-NEXT: Lazy Branch Probability Analysis
114 ; CHECK-NEXT: Lazy Branch Probability Analysis
132 ; CHECK-NEXT: Lazy Branch Probability Analysis
147 ; CHECK-NEXT: Lazy Branch Probability Analysis
175 ; CHECK-NEXT: Lazy Branch Probability Analysis
201 ; CHECK-NEXT: Lazy Branch Probability Analysis
[all …]
Dopt-Os-pipeline.ll43 ; CHECK-NEXT: Lazy Branch Probability Analysis
72 ; CHECK-NEXT: Lazy Branch Probability Analysis
97 ; CHECK-NEXT: Lazy Branch Probability Analysis
115 ; CHECK-NEXT: Lazy Branch Probability Analysis
130 ; CHECK-NEXT: Lazy Branch Probability Analysis
158 ; CHECK-NEXT: Lazy Branch Probability Analysis
184 ; CHECK-NEXT: Lazy Branch Probability Analysis
188 ; CHECK-NEXT: Branch Probability Analysis
195 ; CHECK-NEXT: Lazy Branch Probability Analysis
206 ; CHECK-NEXT: Lazy Branch Probability Analysis
[all …]
Doptimization-remarks-lazy-bfi.ll19 ; HOTNESS: Branch Probability Info : forced
21 ; NO_HOTNESS-NOT: Branch Probability Info : forced
/external/libchrome/base/metrics/
Dfield_trial.h91 typedef int Probability; // Probability type for being selected in a trial. typedef
203 int AppendGroup(const std::string& name, Probability group_probability);
249 Probability total_probability,
290 Probability total_probability,
339 const Probability divisor_;
347 Probability random_;
350 Probability accumulated_group_probability_;
448 FieldTrial::Probability total_probability,
468 FieldTrial::Probability total_probability,
Dfield_trial.cc125 FieldTrial::Probability GetGroupBoundaryValue( in GetGroupBoundaryValue()
126 FieldTrial::Probability divisor, in GetGroupBoundaryValue()
136 const FieldTrial::Probability result = in GetGroupBoundaryValue()
137 static_cast<FieldTrial::Probability>(divisor * entropy_value + kEpsilon); in GetGroupBoundaryValue()
326 Probability group_probability) { in AppendGroup()
399 Probability total_probability, in CreateSimulatedFieldTrial()
407 const Probability total_probability, in FieldTrial()
523 FieldTrial::Probability total_probability, in FactoryGetFieldTrial()
538 FieldTrial::Probability total_probability, in FactoryGetFieldTrialWithRandomizationSeed()
/external/swiftshader/third_party/subzero/src/
DIceRNG.cpp51 bool RandomNumberGeneratorWrapper::getTrueWithProbability(float Probability) { in getTrueWithProbability() argument
52 return RNG.next(MAX) < Probability * MAX; in getTrueWithProbability()
DIceRNG.h66 bool getTrueWithProbability(float Probability);
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.h211 BranchProbability Probability) const override { in isProfitableToIfCvt() argument
219 BranchProbability Probability) const override;
222 BranchProbability Probability) const override { in isProfitableToDupForIfCvt() argument
/external/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h179 BranchProbability Probability) const override;
184 BranchProbability Probability) const override;
186 BranchProbability Probability) const override;
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/
DO3-pipeline.ll15 ; CHECK-NEXT: Machine Branch Probability Analysis
23 ; CHECK-NEXT: Lazy Branch Probability Analysis
42 ; CHECK-NEXT: Branch Probability Analysis
68 ; CHECK-NEXT: Branch Probability Analysis
149 ; CHECK-NEXT: Branch Probability Basic Block Placement
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h225 BranchProbability Probability) const override;
230 BranchProbability Probability) const override;
232 BranchProbability Probability) const override;
/external/llvm/lib/Target/AMDGPU/
DR600InstrInfo.h179 BranchProbability Probability) const override;
183 BranchProbability Probability) const override ;
189 BranchProbability Probability) const override;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600InstrInfo.h186 BranchProbability Probability) const override;
190 BranchProbability Probability) const override ;
196 BranchProbability Probability) const override;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.h276 BranchProbability Probability) const override { in isProfitableToIfCvt() argument
284 BranchProbability Probability) const override;
287 BranchProbability Probability) const override { in isProfitableToDupForIfCvt() argument
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.h129 BranchProbability Probability) const override;
141 BranchProbability Probability) const override;
150 BranchProbability Probability) const override;
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMBaseInstrInfo.h172 const BranchProbability &Probability) const;
178 const BranchProbability &Probability) const;
183 &Probability) const { in isProfitableToDupForIfCvt() argument
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
DO3-pipeline.ll15 ; CHECK-NEXT: Machine Branch Probability Analysis
36 ; CHECK-NEXT: Branch Probability Analysis
60 ; CHECK-NEXT: Branch Probability Analysis
143 ; CHECK-NEXT: Branch Probability Basic Block Placement
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetInstrInfo.h325 const BranchProbability &Probability) const { in isProfitableToIfCvt() argument
340 const BranchProbability &Probability) const { in isProfitableToIfCvt() argument
352 const BranchProbability &Probability) const { in isProfitableToDupForIfCvt() argument
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.h156 BranchProbability Probability) const override;
168 BranchProbability Probability) const override;
177 BranchProbability Probability) const override;
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.h234 BranchProbability Probability) const override;
239 BranchProbability Probability) const override;
242 BranchProbability Probability) const override { in isProfitableToDupForIfCvt() argument
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMBaseInstrInfo.h265 BranchProbability Probability) const override;
270 BranchProbability Probability) const override;
273 BranchProbability Probability) const override { in isProfitableToDupForIfCvt() argument

123