Skip to content

Commit

Permalink
Fixed strided_slice size (apache#7659)
Browse files Browse the repository at this point in the history
Co-authored-by: Akira Maruoka <akira.maruoka@fixstars.com>
  • Loading branch information
2 people authored and trevor-m committed May 11, 2021
1 parent ab3e88a commit c698a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,7 +3093,7 @@ def convert_detection_postprocess(self, op):
valid_count = ret[0]
# keep only the top 'max_detections' rows
ret = _op.strided_slice(
ret[1], [0, 0, 0], [batch_size, custom_options["max_detections"], anchor_boxes]
ret[1], [0, 0, 0], [batch_size, custom_options["max_detections"], 6]
)
# the output needs some reshaping to match tflite
ret = _op.split(ret, 6, axis=2)
Expand Down

0 comments on commit c698a52

Please sign in to comment.