Skip to content

Commit

Permalink
add support when batch_size > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurawly committed Jan 28, 2019
1 parent cf53a1c commit 76bd01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topi/python/topi/cuda/nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def sort_ir(data, index, output):
with ib.if_scope(tid < num_anchors):
p_out[start + tid] = tid
# OddEvenTransposeSort
with ib.for_range(0, p_index[0]) as k:
with ib.if_scope(tid < (p_index[0] + 1) // 2):
with ib.for_range(0, p_index[b]) as k:
with ib.if_scope(tid < (p_index[b] + 1) // 2):
offset = start + 2 * tid + (k % 2)
with ib.if_scope(
tvm.all(offset + 1 < p_index[0], p_data[offset] < p_data[offset + 1])):
Expand Down

0 comments on commit 76bd01a

Please sign in to comment.