Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 29, 2021
1 parent fc3a38e commit 74e1917
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,9 @@ def false_branch():
# return _expr.If(do_zero_pad, true_branch(), false_branch())
return true_branch() if do_zero_pad else false_branch()

assert isinstance(max_output_boxes_per_batch, int),"dynamic number of boxes not supported yet."
assert isinstance(
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)
Expand Down

0 comments on commit 74e1917

Please sign in to comment.