Home
last modified time | relevance | path

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

123

/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.cc37 void RangeSampler::SampleBatch(random::SimplePhilox* rnd, bool unique, in SampleBatch()
45 random::SimplePhilox* rnd, bool unique, gtl::MutableArraySlice<int64> batch, in SampleBatchGetExpectedCount()
78 random::SimplePhilox* rnd, bool unique, MutableArraySlice<int64> batch, in SampleBatchGetExpectedCountAvoid()
125 random::SimplePhilox* rnd, bool unique, MutableArraySlice<int64> batch, in SampleBatchGetExpectedCountAvoid()
150 int64 UniformSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
159 int64 LogUniformSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
182 int64 ThreadUnsafeUnigramSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
205 int64 UnigramSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
217 random::SimplePhilox* rnd, bool unique, MutableArraySlice<int64> batch, in SampleBatchGetExpectedCountAvoid()
271 int64 FixedUnigramSampler::Sample(random::SimplePhilox* rnd) const { in Sample()
Dlrn_op_test.cc92 random::SimplePhilox rand_;
159 static double RndGaussian(random::SimplePhilox* rnd) { in RndGaussian()
/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()
258 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()
/external/tensorflow/tensorflow/core/lib/io/
Dtable_test.cc42 static StringPiece RandomString(random::SimplePhilox* rnd, int len, in RandomString()
50 static string RandomKey(random::SimplePhilox* rnd, int len) { in RandomKey()
61 static StringPiece CompressibleString(random::SimplePhilox* rnd, in CompressibleString()
303 void Test(random::SimplePhilox* rnd, int num_random_access_iters = 200) { in Test()
325 void TestRandomAccess(random::SimplePhilox* rnd, in TestRandomAccess()
397 string PickRandomKey(random::SimplePhilox* rnd, in PickRandomKey()
435 random::SimplePhilox rnd(&philox); in TEST_F()
464 random::SimplePhilox rnd(&philox); in TEST_F()
474 random::SimplePhilox rnd(&philox); in TEST_F()
484 random::SimplePhilox rnd(&philox); in TEST_F()
[all …]
Drecordio_test.cc50 string RandomSkewedString(int i, random::SimplePhilox* rnd) { in RandomSkewedString()
208 random::SimplePhilox rnd(&philox); in TEST_F()
215 random::SimplePhilox rnd(&philox); in TEST_F()
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dinput_data.h68 rng_ = std::unique_ptr<random::SimplePhilox>( in TensorDataSet()
69 new random::SimplePhilox(single_rand_.get())); in TensorDataSet()
123 std::unique_ptr<random::SimplePhilox> rng_;
/external/tensorflow/tensorflow/contrib/coder/kernels/
Drange_coder_test.cc28 void RangeEncodeDecodeTest(int precision, random::SimplePhilox* gen) { in RangeEncodeDecodeTest()
91 random::SimplePhilox rand(&gen); in TEST()
98 random::SimplePhilox rand(&gen); in TEST()
Dpmf_to_cdf_op_test.cc48 void GenerateData(random::SimplePhilox* rand, in GenerateData()
96 random::SimplePhilox rand(&gen); in TEST_F()
121 random::SimplePhilox rand(&gen); in TEST_F()
Drange_coder_ops_test.cc45 int LogUniform(random::SimplePhilox* gen, uint32 n) { in LogUniform()
149 void PopulateMaxValues(random::SimplePhilox* gen, Tensor* maxvalue_tensor, in PopulateMaxValues()
159 void BuildCdf(random::SimplePhilox* gen, Tensor* data_tensor, in BuildCdf()
216 random::SimplePhilox gen(&philox); in TEST_F()
234 random::SimplePhilox gen(&philox); in TEST_F()
269 random::SimplePhilox gen(&philox); in TEST_F()
415 random::SimplePhilox gen(&philox); in CreateRangeEncodeFullBroadcastGraph()
454 random::SimplePhilox gen(&philox); in CreateRangeDecodeFullBroadcastGraph()
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/testutil/
Drandom_tree_gen.h32 RandomTreeGen(tensorflow::random::SimplePhilox* rng, int dense_feature_size,
50 tensorflow::random::SimplePhilox* rng_;
Dbatch_features_testutil.h37 tensorflow::random::SimplePhilox* rng, uint32 num_dense_float_features,
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/core/ops/
Dstochastic_hard_routing_function_op.cc102 rng_ = std::unique_ptr<random::SimplePhilox>( in StochasticHardRoutingFunction()
103 new random::SimplePhilox(single_rand_.get())); in StochasticHardRoutingFunction()
187 std::unique_ptr<random::SimplePhilox> rng_;
/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()
433 random::SimplePhilox rnd(&philox); in TEST()
1215 random::SimplePhilox rnd(&philox); in BM_WriteString()
1233 random::SimplePhilox rnd(&philox); in BM_ReadString()
/external/tensorflow/tensorflow/core/lib/gtl/
Dtop_n_test.cc34 using tensorflow::random::SimplePhilox;
47 SimplePhilox *random, bool test_peek, in TestIntTopNHelper()
78 SimplePhilox *random) { in TestIntTopN()
91 SimplePhilox random(&philox); in TEST()
/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/core/
Dbitmap_test.cc29 static void MakeRandomBitmap(random::SimplePhilox* rnd, Bitmap* bitmap) { in MakeRandomBitmap()
99 random::SimplePhilox rnd(&philox); in TEST()
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/
Ddropout_utils.cc29 using tensorflow::random::SimplePhilox;
71 SimplePhilox rng(&philox); in DropOutTrees()

123