Home
last modified time | relevance | path

Searched refs:SimplePhilox (Results 1 – 25 of 47) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.h43 virtual int64 Sample(random::SimplePhilox* rnd) const = 0;
52 void SampleBatch(random::SimplePhilox* rnd, bool unique,
75 random::SimplePhilox* rnd, bool unique,
86 random::SimplePhilox* rnd, bool unique,
116 int64 Sample(random::SimplePhilox* rnd) const override { in Sample()
127 random::SimplePhilox* rnd, bool unique,
141 int64 Sample(random::SimplePhilox* rnd) const override;
155 int64 Sample(random::SimplePhilox* rnd) const override;
169 int64 Sample(random::SimplePhilox* rnd) const override;
186 int64 Sample(random::SimplePhilox* rnd) const override;
[all …]
Drange_sampler.cc38 void RangeSampler::SampleBatch(random::SimplePhilox* rnd, bool unique, in SampleBatch()
46 random::SimplePhilox* rnd, bool unique, gtl::MutableArraySlice<int64> batch, in SampleBatchGetExpectedCount()
79 random::SimplePhilox* rnd, bool unique, MutableArraySlice<int64> batch, in SampleBatchGetExpectedCountAvoid()
126 random::SimplePhilox* rnd, bool unique, MutableArraySlice<int64> batch, in SampleBatchGetExpectedCountAvoid()
151 int64 UniformSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
160 int64 LogUniformSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
185 int64 ThreadUnsafeUnigramSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
208 int64 UnigramSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
220 random::SimplePhilox* rnd, bool unique, MutableArraySlice<int64> batch, in SampleBatchGetExpectedCountAvoid()
274 int64 FixedUnigramSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
Drange_sampler_test.cc47 random::SimplePhilox rnd(&philox); in CheckHistogram()
271 random::SimplePhilox rnd(&philox); in TEST_F()
314 random::SimplePhilox rnd(&philox); in TEST_F()
Dlrn_op_test.cc95 random::SimplePhilox rand_;
162 static double RndGaussian(random::SimplePhilox* rnd) { in RndGaussian()
Dfractional_pool_common.cc65 random::SimplePhilox random(&local_gen); in GeneratePoolingSequencePseudoRandom()
Dgather_nd_op_test.cc120 random::SimplePhilox rnd(&philox); in GatherNd()
/external/tensorflow/tensorflow/core/lib/random/
Dsimple_philox_test.cc31 SimplePhilox gen(&philox); in TEST()
45 static void DifferenceTest(const char *names, SimplePhilox *gen1, in DifferenceTest()
46 SimplePhilox *gen2) { in DifferenceTest()
60 SimplePhilox gen1(&philox1), gen2(&philox2); in TEST()
67 SimplePhilox gen1(&philox1), gen2(&philox2); in TEST()
77 SimplePhilox gen1(&philox1), gen2(&philox2); in TEST()
97 SimplePhilox gen(&philox); in TEST()
116 SimplePhilox gen(&philox); in TEST()
Dweighted_picker_test.cc31 static void TestPicker(SimplePhilox* rnd, int size);
32 static void CheckUniform(SimplePhilox* rnd, WeightedPicker* picker, int trials);
33 static void CheckSkewed(SimplePhilox* rnd, WeightedPicker* picker, int trials);
38 SimplePhilox rnd(&philox); in TEST()
94 SimplePhilox rnd(&philox); in TEST()
109 SimplePhilox rnd(&philox); in TEST()
121 static void TestPicker(SimplePhilox* rnd, int size) { in TestPicker()
183 static void CheckUniform(SimplePhilox* rnd, WeightedPicker* picker, in CheckUniform()
203 static void CheckSkewed(SimplePhilox* rnd, WeightedPicker* picker, int trials) { in CheckSkewed()
261 SimplePhilox rnd(&philox); in BM_Pick()
Dsimple_philox.cc23 uint32 SimplePhilox::Uniform(uint32 n) { in Uniform()
27 uint64 SimplePhilox::Uniform64(uint64 n) { in Uniform64()
31 uint32 SimplePhilox::Skewed(int max_log) { in Skewed()
Dsimple_philox.h30 class SimplePhilox {
33 explicit SimplePhilox(PhiloxRandom* gen) : single_(gen) {} in SimplePhilox() function
Dweighted_picker.h39 class SimplePhilox; variable
52 int Pick(SimplePhilox* rnd) const;
Ddistribution_sampler_test.cc40 SimplePhilox random(&philox); in TestWeights()
88 SimplePhilox rand(&philox); in BM_DistributionSampler()
Dweighted_picker.cc52 static int32 UnbiasedUniform(SimplePhilox* r, int32 n) { in UnbiasedUniform()
100 int WeightedPicker::Pick(SimplePhilox* rnd) const { in Pick()
Ddistribution_sampler.h52 int Sample(SimplePhilox* rand) const { in Sample()
/external/tensorflow/tensorflow/core/lib/io/
Dtable_test.cc43 static StringPiece RandomString(random::SimplePhilox* rnd, int len, in RandomString()
51 static string RandomKey(random::SimplePhilox* rnd, int len) { in RandomKey()
62 static StringPiece CompressibleString(random::SimplePhilox* rnd, in CompressibleString()
304 void Test(random::SimplePhilox* rnd, int num_random_access_iters = 200) { in Test()
326 void TestRandomAccess(random::SimplePhilox* rnd, in TestRandomAccess()
398 string PickRandomKey(random::SimplePhilox* rnd, in PickRandomKey()
436 random::SimplePhilox rnd(&philox); in TEST_F()
465 random::SimplePhilox rnd(&philox); in TEST_F()
475 random::SimplePhilox rnd(&philox); in TEST_F()
485 random::SimplePhilox rnd(&philox); in TEST_F()
[all …]
Drecordio_test.cc50 string RandomSkewedString(int i, random::SimplePhilox* rnd) { in RandomSkewedString()
236 random::SimplePhilox rnd(&philox); in TEST_F()
243 random::SimplePhilox rnd(&philox); in TEST_F()
/external/tensorflow/tensorflow/core/graph/
Dtensor_id_test.cc37 uint32 Skewed(random::SimplePhilox* rnd, int max_log) { in Skewed()
45 random::SimplePhilox rnd(&philox); in BM_ParseTensorName()
Dbenchmark_testlib.h90 random::SimplePhilox rnd(&philox); in CreateGraphDef()
116 random::SimplePhilox rnd(&philox); in CreateRandomGraph()
/external/tensorflow/tensorflow/core/lib/gtl/
Dtop_n_test.cc33 using tensorflow::random::SimplePhilox;
46 SimplePhilox *random, bool test_peek, in TestIntTopNHelper()
77 SimplePhilox *random) { in TestIntTopN()
90 SimplePhilox random(&philox); in TEST()
/external/tensorflow/tensorflow/core/lib/strings/
Dordered_code_test.cc35 string RandomString(random::SimplePhilox* rnd, size_t len) { in RandomString()
149 random::SimplePhilox rnd(&philox); in TestNumbers()
219 random::SimplePhilox rnd(&philox); in TEST()
331 random::SimplePhilox rnd(&philox); in TEST()
372 uint64 NextBits(random::SimplePhilox* rnd, int bits) { in NextBits()
383 random::SimplePhilox rnd(&philox); in BM_WriteNum()
400 random::SimplePhilox rnd(&philox); in BM_ReadNum()
437 random::SimplePhilox rnd(&philox); in TEST()
1218 random::SimplePhilox rnd(&philox); in BM_WriteString()
1234 random::SimplePhilox rnd(&philox); in BM_ReadString()
/external/tensorflow/tensorflow/core/lib/core/
Dbitmap_test.cc29 static void MakeRandomBitmap(random::SimplePhilox* rnd, Bitmap* bitmap) { in MakeRandomBitmap()
99 random::SimplePhilox rnd(&philox); in TEST()
/external/tensorflow/tensorflow/core/util/
Dexample_proto_fast_parsing_test.cc324 string RandStr(random::SimplePhilox* rng) { in RandStr()
340 void Fuzz(random::SimplePhilox* rng) { in Fuzz()
408 random::SimplePhilox rng(&philox); in TEST()
/external/tensorflow/tensorflow/core/kernels/image/
Dsample_distorted_bounding_box_op.cc30 using tensorflow::random::SimplePhilox;
118 SimplePhilox* random, Rectangle* crop_rect) { in GenerateRandomCrop()
352 random::SimplePhilox random(&local_rng); in DoCompute()
Drandom_crop_op.cc80 random::SimplePhilox random(&local_gen); in Compute()
/external/tensorflow/tensorflow/core/kernels/boosted_trees/quantiles/
Dweighted_quantiles_stream_test.cc82 random::SimplePhilox rand(&philox); in GenerateRandUniformFixedWeightsSummary()
96 random::SimplePhilox rand(&philox); in GenerateRandUniformRandWeightsSummary()

12