Skip to content

Commit

Permalink
check batch_size is int
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Jun 2, 2021
1 parent 8c92760 commit 8fa99ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ def convert_combined_nms_with_all_class_nms(
box_range = _op.arange(
_op.const(0, dtype="int64"), _op.const(max_total_size, dtype="int64"), dtype="int64"
)
assert isinstance(batch_size, int), "dynamic batch size not supported yet."
tile_batch_reps = _op.const([batch_size, 1])
box_range_2d = _op.tile(box_range, tile_batch_reps)
valid_mask = _op.cast(
Expand Down

0 comments on commit 8fa99ff

Please sign in to comment.