Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 29, 2021
1 parent 74e1917 commit 44d88cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,7 @@ def false_branch():
max_output_boxes_per_batch, int
), "dynamic number of boxes not supported yet."
nmsed_scores, topk_indices = select_topk(max_output_boxes_per_batch < max_total_size)
topk_indices = _op.expand_dims(topk_indices, axis=0)
indices = _op.gather_nd(selected_indices, topk_indices, batch_dims=1)
indices = _op.take(selected_indices, topk_indices, axis=1, batch_dims=1)

nmsed_box_indices = _op.take(indices, _op.const(1), axis=2)
nmsed_classes = _op.cast(_op.take(indices, _op.const(0), axis=2), "float32")
Expand Down

0 comments on commit 44d88cd

Please sign in to comment.