vinx13 commented on pull request #10582:
URL: https://github.com/apache/tvm/pull/10582#issuecomment-1069734941


   `buffer->elem_offset` is already processed in `FlattenBuffer / 
StorageFlatten`, it is added to the buffer indices 
(https://github.com/apache/tvm/blob/main/src/tir/ir/buffer.cc#L307). Since 
subsequent passes can still declare buffer with `elem_offset`, I agree they 
still need to be handled. One option is to change 
`GetFlattenBuffer`(https://github.com/apache/tvm/blob/main/src/tir/ir/buffer.cc#L334)
  to have the output buffer elem_offset erased to ensure `elem_offset` are not 
being processed more than once.
   
   cc @Lunderberg 


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