Hi, I’m trying to investigate how pattern matching works in torch compile.
I tried search for “register_replacement” and “gen_register_replacement”, which seem to be the way of registering patterns for matching.
But I only got a few results (i thought there would be a lot rules for matching).
I want to know that is it really that few rules for matching?
Or the pattern matching is mainly just about flash attention (as discussed in How is pattern matching in inductor/fx implemented? - #4 by youkaichao - compiler - PyTorch Developer Mailing List)