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
8c196652
Commit
8c196652
authored
Dec 11, 2023
by
Paul
Browse files
Format
parent
85995696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/verify/test_block_reduce_small.cpp
test/verify/test_block_reduce_small.cpp
+1
-1
No files found.
test/verify/test_block_reduce_small.cpp
View file @
8c196652
...
@@ -39,7 +39,7 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
...
@@ -39,7 +39,7 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
auto
y
=
mm
->
add_parameter
(
"x"
,
s
);
auto
y
=
mm
->
add_parameter
(
"x"
,
s
);
auto
two
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
s
.
type
(),
{
1
}},
{
2
}});
auto
two
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
s
.
type
(),
{
1
}},
{
2
}});
auto
mul
=
migraphx
::
add_common_op
(
*
mm
,
migraphx
::
make_op
(
"mul"
),
{
x
,
two
});
auto
mul
=
migraphx
::
add_common_op
(
*
mm
,
migraphx
::
make_op
(
"mul"
),
{
x
,
two
});
auto
r
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"reduce_sum"
,
{{
"axes"
,
{
1
}}}),
mul
);
auto
r
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"reduce_sum"
,
{{
"axes"
,
{
1
}}}),
mul
);
auto
rb
=
auto
rb
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
s
.
lens
()}}),
r
);
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
);
...
...
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