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

   This PR introduces sugars for TIR buffer declaration.
   
   Sugar 1. Convenient stride definition by string.
   
   ```python
   // Previous
   stride = T.int32()
   A = T.match_buffer(..., strides=(stride,))
   
   // This PR
   A = T.match_buffer(..., strides=("s0", ))
   ```
   
   Sugar 2. Multiple definition of TIR Var from a single buffer are now merged 
into a single line.
   
   ```python
   // Previous
   m = T.int32()
   n = T.int32()
   stride = T.int32()
   stride_1 = T.int32()
   A = T.match_buffer(a, (m, n), strides=(stride, stride_1))
   
   // This PR
   m, n = T.int32(), T.int32()
   A = T.match_buffer(a, (m, n), strides=("s0", "s1"))
   ```


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