"README_ORIGIN.md" did not exist on "17468e2862a13a8cd962b5b6aafb30414e8ddf85"
Commit 9353b24a authored by Brian Pickrell's avatar Brian Pickrell
Browse files

style

parent 455d488f
......@@ -6537,6 +6537,7 @@ TEST_CASE(rand_uniform_and_seed_test)
migraphx::program p;
auto* mm = p.get_main_module();
float control_seed = 0.0f;
size_t sample_size(20000);
// Shape of the random data
......@@ -6559,7 +6560,7 @@ TEST_CASE(rand_uniform_and_seed_test)
result.visit([&](auto output) { result_vec.assign(output.begin(), output.end()); });
// Compare result with the STL's mt19937 generator. Expected verify_range error ~0.4
std::mt19937 gen(0);
std::mt19937 gen(control_seed);
std::uniform_real_distribution<> dis(0.0, 1.0);
std::vector<float> rand_samples(sample_size);
std::generate(rand_samples.begin(), rand_samples.end(), [&]() { return dis(gen); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment