kevinthesun commented on a change in pull request #4312:
URL: https://github.com/apache/incubator-tvm/pull/4312#discussion_r419826426



##########
File path: python/tvm/relay/op/_transform.py
##########
@@ -101,6 +101,28 @@ def _arange_shape_func(start, stop, step):
 def arange_shape_func(attrs, inputs, _):
     return [_arange_shape_func(*inputs)]
 
+@script
+def _strided_slice_shape_func(data, begin, end, strides):
+    ndim = len(data.shape)
+    out = output_tensor((ndim,), "int64")
+    for i in const_range(ndim):
+        cbegin = 0
+        cend = data.shape[i]
+        cstride = 1
+        if len(begin) > i:
+            cbegin = begin[i]
+        if len(end) > i:

Review comment:
       ```suggestion
           if end.shape[0] > i:
   ```




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


Reply via email to