masahi commented on PR #12415:
URL: https://github.com/apache/tvm/pull/12415#issuecomment-1217418265

   ok I was able to reproduce this. As expected, `Simplify` at 
https://github.com/apache/tvm/blob/main/src/te/operation/create_primfunc.cc#L234
 is commuting inputs. This seems like a bug to me, especially given that 
`layout_transform` and `cache_read` etc depends on the order of buffers. cc 
@vinx13 @junrushao1994 
   
   ```
   [03:26:49] 
/home/masa/projects/dev/tvm/src/te/operation/create_primfunc.cc:234: compute 
body                                                           
   [03:26:49] 
/home/masa/projects/dev/tvm/src/te/operation/create_primfunc.cc:235: 
uint8(max(0, min(tir.shift_right((((int32(A[n, h, w, c])*17348) + (int3
   2(B[n, h, w, 0])*17359)) + -2360824), 14), 255)))                            
                                                                          
   [03:26:49] 
/home/masa/projects/dev/tvm/src/te/operation/create_primfunc.cc:237: simplified 
                                                            
   [03:26:49] 
/home/masa/projects/dev/tvm/src/te/operation/create_primfunc.cc:238: 
uint8(max(0, min(tir.shift_right((((int32(B[n, h, w, 0])*17359) + (int3
   2(A[n, h, w, c])*17348)) - 2360824), 14), 255)))
   ```


-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to