Home
last modified time | relevance | path

Searched refs:random_engine (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/kernels/
Dhard_swish_test.cc30 std::minstd_rand* random_engine, in GenerateUniformRandomVector() argument
44 (*random_engine)() * in GenerateUniformRandomVector()
61 float output_max, std::minstd_rand* random_engine, in TestHardSwishQuantized() argument
84 GenerateUniformRandomVector(size, input_min, input_max, random_engine, in TestHardSwishQuantized()
207 std::minstd_rand* random_engine, in TestHardSwishFloat() argument
212 GenerateUniformRandomVector(size, kMin, kMax, random_engine, in TestHardSwishFloat()
260 std::minstd_rand random_engine; in TF_LITE_MICRO_TEST() local
266 tflite::testing::TestHardSwishFloat(size, output_data, &random_engine, in TF_LITE_MICRO_TEST()
271 std::minstd_rand random_engine; in TF_LITE_MICRO_TEST() local
291 input_min, input_max, output_min, output_max, &random_engine, in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/
Dconcat_test.cc25 std::minstd_rand* random_engine, in GenerateUniformRandomVector() argument
40 (*random_engine)() * in GenerateUniformRandomVector()
214 std::minstd_rand random_engine; in TEST() local
218 params1[1], &random_engine, &data1); in TEST()
220 params2[1], &random_engine, &data2); in TEST()
222 params3[1], &random_engine, &data3); in TEST()
224 params4[1], &random_engine, &data4); in TEST()
Dactivations_test.cc28 std::minstd_rand* random_engine, in GenerateUniformRandomVector() argument
43 (*random_engine)() * in GenerateUniformRandomVector()
196 std::minstd_rand* random_engine) { in TestQuantizedHardSwish() argument
198 GenerateUniformRandomVector(size, input_min, input_max, random_engine, in TestQuantizedHardSwish()
232 std::minstd_rand random_engine; in HardSwishTestImpl() local
242 size, input_min, input_max, output_min, output_max, &random_engine); in HardSwishTestImpl()
Dbatch_seq_config_test.cc49 std::random_device random_engine; in GetData() local
52 return static_cast<uint8>(distribution(random_engine)); in GetData()
/external/tensorflow/tensorflow/lite/kernels/
Dcpu_backend_gemm_test.cc69 std::default_random_engine random_engine; in MakeDeterministicPseudoRandomVector() local
70 (void)random_engine(); in MakeDeterministicPseudoRandomVector()
73 const double random_min = static_cast<double>(random_engine.min()); in MakeDeterministicPseudoRandomVector()
74 const double random_max = static_cast<double>(random_engine.max()); in MakeDeterministicPseudoRandomVector()
90 double val = random_scale * (random_engine() - random_min); in MakeDeterministicPseudoRandomVector()
371 std::default_random_engine random_engine; in TestSomeGemm() local
372 cpu_backend_context.SetMaxNumThreads(1 + (random_engine() % 8)); in TestSomeGemm()
373 bool use_caching = static_cast<bool>(random_engine() % 2); in TestSomeGemm()
393 return random_engine() % 2 ? cpu_backend_gemm::Order::kRowMajor in TestSomeGemm()
404 lhs_params.zero_point += random_engine() % 8; in TestSomeGemm()
[all …]
Dactivations_test.cc326 std::minstd_rand* random_engine, in GenerateUniformRandomVector() argument
341 (*random_engine)() * in GenerateUniformRandomVector()
356 void TestFloatHardSwish(int size, std::minstd_rand* random_engine) { in TestFloatHardSwish() argument
360 GenerateUniformRandomVector(size, kMin, kMax, random_engine, in TestFloatHardSwish()
378 std::minstd_rand* random_engine) { in TestQuantizedHardSwish() argument
380 GenerateUniformRandomVector(size, input_min, input_max, random_engine, in TestQuantizedHardSwish()
461 std::minstd_rand random_engine; in TEST() local
463 TestFloatHardSwish(size, &random_engine); in TEST()
468 std::minstd_rand random_engine; in TEST() local
480 &random_engine); in TEST()
[all …]
Dfully_connected_test.cc722 std::mt19937 random_engine; in SimpleTestQuantizedInt16OutputCase() local
729 uint8_t q = static_cast<uint8_t>(weights_dist(random_engine)); in SimpleTestQuantizedInt16OutputCase()
756 uint8_t q = static_cast<uint8_t>(input_dist(random_engine)); in SimpleTestQuantizedInt16OutputCase()
765 b = bias_dist(random_engine); in SimpleTestQuantizedInt16OutputCase()
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_testspec_test.cc27 std::mt19937 random_engine; in TEST() local
29 return std::uniform_real_distribution<float>(-0.5, 0.5)(random_engine); in TEST()
Dgenerate_testspec.cc100 std::mt19937 random_engine; in GenerateTestSpecFromRunner() local
105 &random_engine, input_layer, input_layer_type, input_layer_shape); in GenerateTestSpecFromRunner()
/external/gemmlowp/doc/
Dquantization_example.cc159 static std::mt19937 random_engine; in MakeRandom() local
162 x = static_cast<tScalar>(distribution(random_engine)); in MakeRandom()
/external/gemmlowp/standalone/
Dcache_counters.cc396 std::default_random_engine random_engine; in main() local
398 buf[i] = random_engine(); in main()
/external/gemmlowp/test/
Dtest_fixedpoint.cc460 std::mt19937 random_engine; in MakeTestVals() local
465 testvals.push_back(uniform_distribution(random_engine)); in MakeTestVals()