You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/08/17 03:30:16 UTC

[GitHub] [tvm] masahi commented on pull request #12415: [TOPI][Hexagon] Test case to reproduce buffer store bug

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-unsubscribe@tvm.apache.org

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