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
aa517bd9
Commit
aa517bd9
authored
Aug 22, 2023
by
Brian Pickrell
Browse files
comment
parent
333ce7d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/include/migraphx/op/random_uniform.hpp
src/include/migraphx/op/random_uniform.hpp
+3
-3
No files found.
src/include/migraphx/op/random_uniform.hpp
View file @
aa517bd9
...
...
@@ -96,9 +96,9 @@ struct random_uniform
using
type
=
typename
decltype
(
output
)
::
value_type
;
if
constexpr
(
std
::
is_integral
<
type
>
{})
{
// default range for all integer types is (0,
INT_MAX) which depends
//
on the integral type. To clamp
// to a different range, apply min or max ops. to the output of this.
// default range for all integer types is (0,
//
std::uniform_int_distribution<type>::max()).
//
To clamp
to a different range, apply min or max ops. to the output of this.
std
::
uniform_int_distribution
<
type
>
dis
;
std
::
generate
(
output
.
begin
(),
output
.
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