Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
9353b24a
"README_ORIGIN.md" did not exist on "17468e2862a13a8cd962b5b6aafb30414e8ddf85"
Commit
9353b24a
authored
Aug 15, 2023
by
Brian Pickrell
Browse files
style
parent
455d488f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
test/ref_ops_test.cpp
test/ref_ops_test.cpp
+2
-1
No files found.
test/ref_ops_test.cpp
View file @
9353b24a
...
...
@@ -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); });
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment