You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "ilyag-grovety (via GitHub)" <gi...@apache.org> on 2023/07/21 07:49:25 UTC

[GitHub] [tvm] ilyag-grovety commented on a diff in pull request #15117: [FRONTEND][TFLITE] Add support for TFLite's regular NMS operator

ilyag-grovety commented on code in PR #15117:
URL: https://github.com/apache/tvm/pull/15117#discussion_r1270345267


##########
python/tvm/topi/cuda/ssd/multibox.py:
##########
@@ -341,10 +360,12 @@ def transform_loc(loc, loc_base_idx, anchor, anchor_base_idx, clip, vx, vy, vw,
         i = idxd(tid, num_anchors)
         j = idxm(tid, num_anchors)
 
-        with ib.if_scope(cls_id[tid] > 0):
+        with ib.if_scope(tvm.tir.any(keep_background == 1, cls_id[tid] > 0)):
             with ib.if_scope(j == 0):
                 out_base_idx = i * num_anchors * 6
-                out_loc[out_base_idx] = cls_id[tid] - 1.0
+                out_loc[out_base_idx] = (
+                    cls_id[tid] - 0.0 if keep_background == 1 else cls_id[tid] - 1.0

Review Comment:
   No, I'll remove, thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org