You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2019/11/25 18:33:47 UTC

[GitHub] [incubator-tvm] kevinthesun commented on a change in pull request #4417: [TOPI][RELAY][OP] add op crop_and_resize

kevinthesun commented on a change in pull request #4417: [TOPI][RELAY][OP] add op crop_and_resize
URL: https://github.com/apache/incubator-tvm/pull/4417#discussion_r350351681
 
 

 ##########
 File path: python/tvm/relay/op/image/image.py
 ##########
 @@ -60,3 +60,53 @@ def resize(data,
         The resized result.
     """
     return _make.resize(data, size, layout, method, align_corners, out_dtype)
+
+
+def crop_and_resize(data,
+                    boxes,
+                    box_indices,
+                    crop_size,
+                    layout,
+                    method="bilinear",
+                    extrapolation_value=0,
+                    out_dtype=None):
+    """Crop input images and resize them.
+
+    method indicates the algorithm to be used while calculating ghe out value
 
 Review comment:
   typo `ghe`

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services