Thanks for the proposal. I agree that it is a valuable problem for dynamic shape.
Here are two questions from me:
- Is it necessary to rewrite
(d1*d2)*d0intod0*d1*d2. Can we prove them equal byAnalyzerdirectly? - Can we embed the new rule into
tir.Simplifyrather than create a new methodRewriteSimplifier?
Thanks again for the great work and proposal!