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
ec9e35c1
Commit
ec9e35c1
authored
Jul 27, 2023
by
Brian Pickrell
Browse files
formatting
parent
634f5844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/common.cpp
src/common.cpp
+1
-1
test/op_shape_test.cpp
test/op_shape_test.cpp
+2
-1
No files found.
src/common.cpp
View file @
ec9e35c1
...
@@ -210,7 +210,7 @@ instruction_ref insert_common_op(module& m,
...
@@ -210,7 +210,7 @@ instruction_ref insert_common_op(module& m,
std
::
vector
<
instruction_ref
>
inputs
)
std
::
vector
<
instruction_ref
>
inputs
)
{
{
if
(
op
.
name
()
==
"clip"
)
if
(
op
.
name
()
==
"clip"
)
return
inputs
[
0
];
return
inputs
[
0
];
return
m
.
insert_instruction
(
ins
,
op
,
insert_common_args
(
m
,
ins
,
std
::
move
(
inputs
)));
return
m
.
insert_instruction
(
ins
,
op
,
insert_common_args
(
m
,
ins
,
std
::
move
(
inputs
)));
}
}
...
...
test/op_shape_test.cpp
View file @
ec9e35c1
...
@@ -1858,7 +1858,8 @@ TEST_CASE(multinomial_dyn)
...
@@ -1858,7 +1858,8 @@ TEST_CASE(multinomial_dyn)
{
{
migraphx
::
shape
s
{
migraphx
::
shape
::
int32_type
,
{{
2
,
3
},
{
5
,
6
}}};
migraphx
::
shape
s
{
migraphx
::
shape
::
int32_type
,
{{
2
,
3
},
{
5
,
6
}}};
expect_shape
(
s
,
migraphx
::
make_op
(
"multinomial"
,
{{
"dtype"
,
migraphx
::
shape
::
int32_type
}}),
s
,
s
);
expect_shape
(
s
,
migraphx
::
make_op
(
"multinomial"
,
{{
"dtype"
,
migraphx
::
shape
::
int32_type
}}),
s
,
s
);
}
}
TEST_CASE
(
nms_shape
)
TEST_CASE
(
nms_shape
)
...
...
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