mbrookhart commented on a change in pull request #7154:
URL: https://github.com/apache/tvm/pull/7154#discussion_r548046623
##########
File path: python/tvm/relay/frontend/pytorch_utils.py
##########
@@ -25,3 +35,98 @@ def is_version_greater_than(ver):
return "".join(re.findall(r"(\d+\.)(\d+\.)(\d)", torch.__version__)[0]) >
"".join(
re.findall(r"(\d+\.)(\d+\.)(\d)", ver)[0]
)
+
+
+def batched_nms_pattern(boxes, scores, idxs, iou_threshold):
+ """A pattern to detect batched_nms function in torchvision"""
Review comment:
I think I understand what the rewritten pattern does, but I'm not
understanding how the pytorch version works.
----------------------------------------------------------------
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]