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

   The FuseReductionEpilogue primitive currently supports fusing bias addition 
epilogues into reduction blocks. This commit extends the primitive to also
   support ReLU activation functions in epilogue blocks, enabling fusion of
   patterns like max(temp + bias, 0) into the reduction computation.
   
   The implementation adds an EpilogueType enumeration to distinguish between
   Bias and BiasReLU patterns. The AnalyzeEpiloguePattern method is extended
   to detect ReLU patterns by checking for MaxNode expressions with zero
   constants.
   
   This commit also adds comprehensive tests in
   ```test_tir_schedule_fuse_reduction_epilogue_relu.py```, following the same
   patterns as the existing bias tests. The tests verify structural equality,
   numerical correctness with per-iteration ReLU semantics, and multiple
   epilogue block scenarios. All tests pass successfully.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to