cyx-6 opened a new pull request, #13743:
URL: https://github.com/apache/tvm/pull/13743

   This PR implements the syntax sugar of `T.axis.remap` for new TVMScript 
printer. This syntax sugar will synthesize the `T.axis.remap` when there are 
more than 2 simple block iterating variable bindings. For example, it will 
change
   ```python
   for i, j, k in T.grid(128, 128, 128):
     with T.block("update"):
       vi = T.axis.spatial(128, i)
       vj = T.axis.spatial(128, j)
       vk = T.axis.reduce(128, k)
   ```
   into
   ```python
   for i, j, k in T.grid(128, 128, 128):
     with T.block("update"):
       vi, vj, vk = T.axis.remap("SSR", [i, j, k])
   ```


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