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
ff9c397c
Commit
ff9c397c
authored
Jul 13, 2022
by
charlie
Browse files
check_shapes allow dynamic
parent
abc625e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/include/migraphx/op/nonmaxsuppression.hpp
src/include/migraphx/op/nonmaxsuppression.hpp
+1
-1
No files found.
src/include/migraphx/op/nonmaxsuppression.hpp
View file @
ff9c397c
...
@@ -58,7 +58,7 @@ struct nonmaxsuppression
...
@@ -58,7 +58,7 @@ struct nonmaxsuppression
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
{
// requires at least 2 inputs
// requires at least 2 inputs
check_shapes
{{
inputs
.
at
(
0
),
inputs
.
at
(
1
)},
*
this
}.
only_dims
(
3
).
same_ndims
();
check_shapes
{{
inputs
.
at
(
0
),
inputs
.
at
(
1
)},
*
this
,
true
}.
only_dims
(
3
).
same_ndims
();
const
auto
max_num_boxes
=
inputs
.
at
(
0
).
max_lens
().
at
(
1
);
const
auto
max_num_boxes
=
inputs
.
at
(
0
).
max_lens
().
at
(
1
);
auto
fixed_shape_error_check
=
[
&
]()
{
auto
fixed_shape_error_check
=
[
&
]()
{
...
...
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