icemelon9 commented on a change in pull request #4312: [TOPI][Relay][OP] 
Dynamic NMS and strided_slice
URL: https://github.com/apache/incubator-tvm/pull/4312#discussion_r345405555
 
 

 ##########
 File path: topi/python/topi/vision/nms.py
 ##########
 @@ -334,8 +515,12 @@ def non_max_suppression(data, valid_count, 
max_output_size=-1,
 
     Returns
     -------
-    out : tvm.Tensor
-        3-D tensor with shape [batch_size, num_anchors, 6].
+    out : tvm.Tensor or tuple of tvm.Tensor
+        3-D tensor with shape [batch_size, num_anchors, 6]
+        or [batch_size, num_anchors, 6]. Out is a tuple of tvm.Tensor
+        if return_indices is True, the Tensor in the tuple is 2-D tensor
+        with shape [batch_size, num_anchors] and shape
+        [batch_size, num_valid_anchors] respectively.
 
 Review comment:
   fix the doc here

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


With regards,
Apache Git Services

Reply via email to