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
d88ca899
"docs/source/misc/model_compress_comp.rst" did not exist on "b177bdc8ea5cf3b627f05f9af325b010817c1561"
Commit
d88ca899
authored
Aug 15, 2023
by
Brian Pickrell
Browse files
data type in test
parent
9353b24a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/include/migraphx/op/rand_uniform.hpp
src/include/migraphx/op/rand_uniform.hpp
+1
-1
test/op_shape_test.cpp
test/op_shape_test.cpp
+1
-1
test/ref_ops_test.cpp
test/ref_ops_test.cpp
+1
-1
No files found.
src/include/migraphx/op/rand_uniform.hpp
View file @
d88ca899
...
...
@@ -94,7 +94,7 @@ struct rand_uniform
argument
compute
(
const
shape
&
output
,
std
::
vector
<
argument
>
args
)
const
{
// Output goes into the passed buffer, not the shape output
(
void
)
output
;
(
void
)
output
;
argument
result
{
args
[
1
].
get_shape
()};
uint32_t
local_seed
=
args
[
0
].
at
<
uint32_t
>
(
0
);
...
...
test/op_shape_test.cpp
View file @
d88ca899
...
...
@@ -2219,7 +2219,7 @@ TEST_CASE(prefix_scan_sum_dyn_2d)
TEST_CASE
(
rand_uniform
)
{
std
::
vector
<
migraphx
::
shape
::
dynamic_dimension
>
dd
{{
5
,
8
},
{
3
,
7
}};
migraphx
::
shape
s0
{
migraphx
::
shape
::
float
_type
,
{
1
}};
migraphx
::
shape
s0
{
migraphx
::
shape
::
uint32
_type
,
{
1
}};
migraphx
::
shape
s1
{
migraphx
::
shape
::
float_type
,
dd
};
expect_shape
(
s1
,
migraphx
::
make_op
(
"rand_uniform"
),
s0
,
s1
);
}
...
...
test/ref_ops_test.cpp
View file @
d88ca899
...
...
@@ -6537,7 +6537,7 @@ TEST_CASE(rand_uniform_and_seed_test)
migraphx::program p;
auto* mm = p.get_main_module();
float control_seed
= 0.0f;
float control_seed = 0.0f;
size_t sample_size(20000);
// Shape of the random data
...
...
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