Laurawly commented on a change in pull request #7188:
URL: https://github.com/apache/tvm/pull/7188#discussion_r559327798



##########
File path: python/tvm/topi/vision/ssd/multibox.py
##########
@@ -238,7 +238,8 @@ def hybrid_multibox_transform_loc(cls_prob, loc_pred, 
anchor, clip, threshold, v
                 out_loc[i, valid_count[i], 4] = out_coord[2]
                 out_loc[i, valid_count[i], 5] = out_coord[3]
                 valid_count[i] += 1
-
+        for j in range(valid_count[i], num_anchors):
+            out_loc[i, j, 0] = -1.0

Review comment:
       For the initialization, `out_loc[i, j, 1~5]` are also not initialized 
right? cc @kevinthesun 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to