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

   Currently, dataflow pattern matching in Relax only supports matching with 
boolean result and doesn't support rewriting matched expressions. This PR adds 
such utility following the Relay counterpart below (with a simpler API).   
   
https://github.com/apache/tvm/blob/da99e9d1b5208e9a23e0b8e5b45da6e633f05415/python/tvm/relay/dataflow_pattern/__init__.py#L884
   
   This is useful for, for example, rewriting a sequence of matmul -> softmax 
-> matmul into an attention op introduced in 
https://github.com/apache/tvm/pull/14150. 
   
   @cyx-6 @vinx13 @yelite @MasterJH5574 @spectrometerHBH 


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