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
c873fe29
Commit
c873fe29
authored
Aug 11, 2023
by
Brian Pickrell
Browse files
remove use_auto_seed
parent
2e26eb5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/include/migraphx/op/rand_uniform.hpp
src/include/migraphx/op/rand_uniform.hpp
+4
-4
No files found.
src/include/migraphx/op/rand_uniform.hpp
View file @
c873fe29
...
...
@@ -31,8 +31,9 @@
*
* Inputs: (1) the shape of the set to be populated.
* (2) randomization seed (uint32). If not given at inference time, the attribute
* value, or auto seeding, will be used. Attributes: use_auto_seed bool Have hardware generate
* random seed at runtime, overriding the attribute seed seed uint32 Randomization seed
* value, or auto seeding, will be used.
*
* Attributes: seed uint32 Randomization seed
*
* Output: Same shape.
*
...
...
@@ -53,7 +54,6 @@ namespace op {
struct
rand_uniform
{
uint32_t
seed
=
{
0
};
bool
use_auto_seed
=
false
;
// todo: not currently settable
float
range_min
=
0.0
f
;
...
...
@@ -66,7 +66,7 @@ struct rand_uniform
static
auto
reflect
(
Self
&
self
,
F
f
)
{
return
pack
(
f
(
self
.
dtype
,
"dtype"
),
f
(
self
.
seed
,
"seed"
)
,
f
(
self
.
use_auto_seed
,
"use_auto_seed"
)
);
f
(
self
.
dtype
,
"dtype"
),
f
(
self
.
seed
,
"seed"
));
}
std
::
string
name
()
const
{
return
"rand_uniform"
;
}
...
...
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