masahi commented on PR #12415: URL: https://github.com/apache/tvm/pull/12415#issuecomment-1217435252
@trahman-quic So the simplifer does some kind of sorting of operands at https://github.com/apache/tvm/blob/2b7013e344cf15561acd2649f6c9cadf2f2032be/src/arith/canonical_simplify.cc#L496. I think, by design, the simplifer commutes the operands arbitrary. So we shouldn't make an assumption on a buffer order based on intuition. It's a bit unfortunate, but before you do `transform_layout`, you need to "print" the prim func to manually inspect the buffer order in `reads`. Or better, refer to the buffer by name as suggested elsewhere. -- 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]
