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
514d616f
Commit
514d616f
authored
Mar 28, 2023
by
Ted Themistokleous
Browse files
Remove caching area for boxes upon batch_box run
Remove's caching from this and may lead to errors down the road
parent
f908781c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/include/migraphx/op/nonmaxsuppression.hpp
src/include/migraphx/op/nonmaxsuppression.hpp
+2
-4
No files found.
src/include/migraphx/op/nonmaxsuppression.hpp
View file @
514d616f
...
@@ -141,7 +141,6 @@ struct nonmaxsuppression
...
@@ -141,7 +141,6 @@ struct nonmaxsuppression
{
{
std
::
array
<
double
,
2
>
x
;
std
::
array
<
double
,
2
>
x
;
std
::
array
<
double
,
2
>
y
;
std
::
array
<
double
,
2
>
y
;
double
stored_area
;
void
sort
()
void
sort
()
{
{
...
@@ -186,15 +185,14 @@ struct nonmaxsuppression
...
@@ -186,15 +185,14 @@ struct nonmaxsuppression
}
}
result
.
sort
();
result
.
sort
();
result
.
stored_area
=
result
.
area
();
return
result
;
return
result
;
}
}
inline
bool
suppress_by_iou
(
box
b1
,
box
b2
,
double
iou_threshold
)
const
inline
bool
suppress_by_iou
(
box
b1
,
box
b2
,
double
iou_threshold
)
const
{
{
const
double
area1
=
b1
.
stored_
area
;
const
double
area1
=
b1
.
area
()
;
const
double
area2
=
b2
.
stored_
area
;
const
double
area2
=
b2
.
area
()
;
if
(
area1
<=
.0
f
or
area2
<=
.0
f
)
if
(
area1
<=
.0
f
or
area2
<=
.0
f
)
{
{
...
...
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