Skip to content

Commit

Permalink
fixed score gathering
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 29, 2021
1 parent d203562 commit 115a5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def _impl(inputs, attr, params, mod):
indices_shape = _infer_shape(indices, mod)
indices_dims = len(indices_shape)
indices = _op.transpose(indices, axes=[-1] + list(range(indices_dims - 1)))
nmsed_scores = _op.gather_nd(scores, indices, batch_dims=1)
nmsed_scores = _op.gather_nd(scores_trans, indices, batch_dims=1)

if attr["clip_boxes"]:
nmsed_boxes = _op.maximum(nmsed_boxes, _expr.const(0, dtype="float32"))
Expand Down

0 comments on commit 115a5df

Please sign in to comment.