trahman-quic commented on PR #12415:
URL: https://github.com/apache/tvm/pull/12415#issuecomment-1213529586

   primfn IR:
   
   ```
   primfn(var_A: handle, var_B: handle, var_compute: handle) -> ()
     attr = {"global_symbol": "main", "tir.noalias": True}
     buffers = {A: Buffer(A_1: Pointer(global uint8), uint8, [1, 8, 8, 32], []),
                B: Buffer(B_1: Pointer(global uint8), uint8, [1, 8, 8, 1], []),
                compute: Buffer(compute_1: Pointer(global uint8), uint8, [1, 8, 
8, 32], [])}
     buffer_map = {var_A: A, var_B: B, var_compute: compute} {
     block([], "root") {
       tir.reads([])
       tir.writes([])
       for (i0: int32, 0, 1) {
         for (i1: int32, 0, 8) {
           for (i2: int32, 0, 8) {
             for (i3: int32, 0, 32) {
               block([1, 8, 8, 32], "compute") as [n, h, w, c] {
                 bind(n, i0)
                 bind(h, i1)
                 bind(w, i2)
                 bind(c, i3)
                 tir.reads([B[n, h, w, 0], A[n, h, w, c]])
                 tir.writes([compute[n, h, w, c]])
                 compute[n, h, w, c] = cast(uint8, max(0, 
min(@tir.shift_right((((cast(int32, B[n, h, w, 0])*17357) + (cast(int32, A[n, 
h, w, c])*17348)) - 2360552), 14, dtype=int32), 255)))
             }
           }
         }
       }
   }
   ```
   
   ---> tir.reads([B[n, h, w, 0], A[n, h, w, c]]) ---> buffer is swapped


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