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/04/08 21:47:59 UTC

[GitHub] [tvm] vinx13 commented on issue #10831: [Bug][TIR][Script] TVM complains about undefined variables when building PrimFunc

vinx13 commented on issue #10831:
URL: https://github.com/apache/tvm/issues/10831#issuecomment-1093388804

   The issue here is `A_pack`, `B_pack` is allocated but not initialized. Without both writer and reader of the buffer being present, it cannot analyze the buffer shape and the allocation site correctly. We may want to add assertions in `PlanAndUpdateBufferAllocationLocation` make sure that buffer is initialized and avoid user confusion. cc @Hzfengsy 
   If you would like to keep buffer shape and allocation location as specified in TIR, you can disable `tir.CompactBufferAllocation` and `tir.PlanAndUpdateBufferAllocationLocation` passes. See also https://github.com/apache/tvm/issues/10877


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