masahi commented on pull request #7346: URL: https://github.com/apache/tvm/pull/7346#issuecomment-768608594
No, the `If` there is for guarding against the case where there is no boxes, see https://github.com/pytorch/vision/blob/8ebfd2f5d5f1792ce2cf5a2329320f604530a68e/torchvision/ops/boxes.py#L78-L79 So applying topk to an empty tensor is nop anyway. ---------------------------------------------------------------- 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]
