Lunderberg commented on PR #16250:
URL: https://github.com/apache/tvm/pull/16250#issuecomment-1971922325

   @Lucien0 This error message occurs because the `VerifyWellFormed` checker 
treats all elements of the `PrimFunc::buffer_map` as independent non-aliasing 
buffers.  However, this is a stronger restriction that the TIR language 
requires.  It is legal for a PrimFunc to require two `DLTensor` arguments, and 
to require that the two `DLTensor`s share the same backing allocation.  This is 
what your example states.  However, the well-formed checker doesn't currently 
handle this, and erroneously expects every `DLTensor` argument to define an 
independent buffer/allocation.
   
   I've submitted https://github.com/apache/tvm/pull/16655, which should 
resolve this issue, along with a few others that have come up in the 
well-formed checker.  Can you test and see if it solves your issue?


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