PatrikPerssonInceptron opened a new pull request, #17502:
URL: https://github.com/apache/tvm/pull/17502

   Fixed inconsistency between relax.strided_slice output shape and 
topi.strided_slice output shape when assume_inbound 
   is set to false.
   
   I added an assume_inbound flag to topi.strided_slice. If it is false then 
the begin and end indices are canonicalized before the dimension length is 
calculated. To avoid introducing duplicate code i removed the corresponding 
functions from relax/../index.cc and instead reference the new functions 
defined in include/tvm/topi/transform.h.
   
   I added a regression test for the case with assume_inbound = false when the 
end of the slice is at infinity, e.g. v[begin:], which previously caused an 
incorrect output shape.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to