MasterJH5574 opened a new pull request, #14075:
URL: https://github.com/apache/tvm/pull/14075

   This PR supports TIR pattern kind analysis for TIR blocks which write to 
multiple buffers, which is helpful for normalization operators like layernorm, 
groupnorm, etc.
   
   Prior to this PR, the analyzer does not support a blocks which write to 
multiple buffers. On seeing such a block, the analyzer simply sets the analysis 
result to "opaque". With this PR, on seeing a block which writes multiple 
buffers, the analyzer will check if all the BufferStores have the same indices. 
And it will only set the result to "opaque" when the BufferStores have 
different indices.
   
   By doing this, the analysis works for common cases where a block may write 
to multiple buffers, like layernorm or groupnorm.
   
   Besides the unit test for the analysis itself, this PR also adds a unit test 
for FuseOps pass, make sure that a "groupnorm + silu" pattern can be fused 
together.


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