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
455e6535
Commit
455e6535
authored
Dec 11, 2023
by
Paul
Browse files
Format
parent
9d2f66e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/shape.cpp
src/shape.cpp
+1
-3
test/verify/test_block_reduce_small.cpp
test/verify/test_block_reduce_small.cpp
+1
-1
No files found.
src/shape.cpp
View file @
455e6535
...
...
@@ -246,9 +246,7 @@ std::string shape::cpp_type(shape::type_t t)
bool
shape
::
is_integral
(
shape
::
type_t
t
)
{
bool
result
=
false
;
visit
(
t
,
[
&
](
auto
as
)
{
result
=
as
.
is_integral
();
});
visit
(
t
,
[
&
](
auto
as
)
{
result
=
as
.
is_integral
();
});
return
result
;
}
...
...
test/verify/test_block_reduce_small.cpp
View file @
455e6535
...
...
@@ -36,7 +36,7 @@ struct test_block_reduce_small : verify_program<test_block_reduce_small<N, T>>
auto
*
mm
=
p
.
get_main_module
();
migraphx
::
shape
s
{
T
,
{
2
,
N
}};
auto
x
=
mm
->
add_parameter
(
"x"
,
s
);
auto
y
=
mm
->
add_parameter
(
"y"
,
s
);
auto
y
=
mm
->
add_parameter
(
"y"
,
s
);
auto
two
=
mm
->
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
s
.
type
(),
{
1
}},
{
2
}});
auto
mul
=
migraphx
::
add_common_op
(
*
mm
,
migraphx
::
make_op
(
"div"
),
{
x
,
two
});
auto
r
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"reduce_sum"
,
{{
"axes"
,
{
1
}}}),
mul
);
...
...
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