Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
b0a0ae4d
Commit
b0a0ae4d
authored
Mar 09, 2019
by
Leyuan Wang
Committed by
masahi
Mar 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert PR#2420 nms changes (#2747)
parent
a7e35fc3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
topi/python/topi/cuda/nms.py
+3
-5
No files found.
topi/python/topi/cuda/nms.py
View file @
b0a0ae4d
...
...
@@ -35,7 +35,7 @@ def sort_ir(data, index, output):
p_index
=
ib
.
buffer_ptr
(
index
)
p_out
=
ib
.
buffer_ptr
(
output
)
nthread_tx
=
max_threads
nthread_bx
=
(
num_anchors
+
1
)
//
2
//
max_threads
+
1
nthread_bx
=
num_anchors
//
max_threads
+
1
tx
=
tvm
.
thread_axis
(
"threadIdx.x"
)
bx
=
tvm
.
thread_axis
(
"vthread"
)
ib
.
scope_attr
(
tx
,
"thread_extent"
,
nthread_tx
)
...
...
@@ -46,10 +46,8 @@ def sort_ir(data, index, output):
with
ib
.
for_range
(
0
,
batch
,
for_type
=
"unroll"
)
as
b
:
start
=
b
*
num_anchors
for
i
in
range
(
2
):
bbox_id
=
tid
*
2
+
i
with
ib
.
if_scope
(
bbox_id
<
num_anchors
):
p_out
[
start
+
bbox_id
]
=
bbox_id
with
ib
.
if_scope
(
tid
<
num_anchors
):
p_out
[
start
+
tid
]
=
tid
# OddEvenTransposeSort
with
ib
.
for_range
(
0
,
p_index
[
b
])
as
k
:
with
ib
.
if_scope
(
tid
<
(
p_index
[
b
]
+
1
)
//
2
):
...
...
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