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
a824f63e
Commit
a824f63e
authored
Dec 11, 2023
by
Paul
Browse files
Format
parent
ebd7a6f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
test/verify/test_block_reduce_small.cpp
test/verify/test_block_reduce_small.cpp
+5
-6
No files found.
test/verify/test_block_reduce_small.cpp
View file @
a824f63e
...
@@ -37,7 +37,8 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
...
@@ -37,7 +37,8 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
y
=
mm
->
add_parameter
(
"x"
,
s
);
auto
y
=
mm
->
add_parameter
(
"x"
,
s
);
auto
r
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"reduce_mean"
,
{{
"axes"
,
{
1
}}}),
x
);
auto
r
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"reduce_mean"
,
{{
"axes"
,
{
1
}}}),
x
);
auto
rb
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
s
.
lens
()}}),
r
);
auto
rb
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
s
.
lens
()}}),
r
);
auto
add
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"add"
),
rb
,
y
);
auto
add
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"add"
),
rb
,
y
);
mm
->
add_return
({
add
});
mm
->
add_return
({
add
});
return
p
;
return
p
;
...
@@ -45,10 +46,9 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
...
@@ -45,10 +46,9 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
};
};
template
<
int
N
>
template
<
int
N
>
struct
test_block_reduce_small_for_size
struct
test_block_reduce_small_for_size
:
test_block_reduce_small
<
N
,
migraphx
::
shape
::
half_type
>
,
:
test_block_reduce_small
<
N
,
migraphx
::
shape
::
half_type
>
,
test_block_reduce_small
<
N
,
migraphx
::
shape
::
float_type
>
,
test_block_reduce_small
<
N
,
migraphx
::
shape
::
float_type
>
,
test_block_reduce_small
<
N
,
migraphx
::
shape
::
int8_type
>
test_block_reduce_small
<
N
,
migraphx
::
shape
::
int8_type
>
{
{
};
};
...
@@ -63,4 +63,3 @@ template struct test_block_reduce_small_for_size<64>;
...
@@ -63,4 +63,3 @@ template struct test_block_reduce_small_for_size<64>;
template
struct
test_block_reduce_small_for_size
<
67
>;
template
struct
test_block_reduce_small_for_size
<
67
>;
template
struct
test_block_reduce_small_for_size
<
128
>;
template
struct
test_block_reduce_small_for_size
<
128
>;
template
struct
test_block_reduce_small_for_size
<
129
>;
template
struct
test_block_reduce_small_for_size
<
129
>;
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