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
Commit
d88ca899
authored
Aug 15, 2023
by
Brian Pickrell
Browse files
data type in test
parent
9353b24a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
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
No files found.
src/include/migraphx/op/rand_uniform.hpp
View file @
d88ca899
...
@@ -94,7 +94,7 @@ struct rand_uniform
...
@@ -94,7 +94,7 @@ struct rand_uniform
argument
compute
(
const
shape
&
output
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
const
shape
&
output
,
std
::
vector
<
argument
>
args
)
const
{
{
// Output goes into the passed buffer, not the shape output
// Output goes into the passed buffer, not the shape output
(
void
)
output
;
(
void
)
output
;
argument
result
{
args
[
1
].
get_shape
()};
argument
result
{
args
[
1
].
get_shape
()};
uint32_t
local_seed
=
args
[
0
].
at
<
uint32_t
>
(
0
);
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)
...
@@ -2219,7 +2219,7 @@ TEST_CASE(prefix_scan_sum_dyn_2d)
TEST_CASE
(
rand_uniform
)
TEST_CASE
(
rand_uniform
)
{
{
std
::
vector
<
migraphx
::
shape
::
dynamic_dimension
>
dd
{{
5
,
8
},
{
3
,
7
}};
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
};
migraphx
::
shape
s1
{
migraphx
::
shape
::
float_type
,
dd
};
expect_shape
(
s1
,
migraphx
::
make_op
(
"rand_uniform"
),
s0
,
s1
);
expect_shape
(
s1
,
migraphx
::
make_op
(
"rand_uniform"
),
s0
,
s1
);
}
}
...
...
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