Skip to content

Commit

Permalink
minimum fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 29, 2021
1 parent 3fe91e8 commit d203562
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions python/tvm/topi/cuda/nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,6 @@ def all_class_non_max_suppression(
topk_indices = expand_dims(topk_indices, axis=0)
final_indices = gather_nd(selected_indices, topk_indices, batch_dims=1)

# TODO
# num_detections = minimum(num_total_detections, max_detection_per_batch)
num_detections = num_total_detections
num_detections = minimum(num_total_detections, max_detection_per_batch)

return [final_indices, num_detections]
4 changes: 3 additions & 1 deletion python/tvm/topi/cuda/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def traverse(op):
traverse(tensor.op)
scheduled_ops.append(op)

traverse(outs[0].op)
for o in outs:
traverse(o.op)

return s


Expand Down
1 change: 0 additions & 1 deletion python/tvm/topi/vision/nms_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def collect_selected_indices_tf(num_class, selected_indices, num_detections, row
)



def _all_class_nms_ir(
boxes,
sorted_scores,
Expand Down

0 comments on commit d203562

Please sign in to comment.