Skip to content

Commit

Permalink
[BugFix][Topi] Fix 'duplicated iterator names in the compute definiti…
Browse files Browse the repository at this point in the history
…on' bug of roi_align (apache#11322)
  • Loading branch information
Ziqang XU committed May 16, 2022
1 parent eed21ee commit 02d57bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/topi/vision/rcnn/roi_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def _sample_common(
roi_bin_grid_w = te.ceil(roi_w / pooled_size_w).astype("int32")

count = roi_bin_grid_h * roi_bin_grid_w
rh = te.reduce_axis((0, roi_bin_grid_h))
rw = te.reduce_axis((0, roi_bin_grid_w))
rh = te.reduce_axis((0, roi_bin_grid_h), name="rh")
rw = te.reduce_axis((0, roi_bin_grid_w), name="rw")
roi_start_h += ph * bin_h
roi_start_w += pw * bin_w

Expand Down

0 comments on commit 02d57bb

Please sign in to comment.