[MHLO] Add configurable op decomposition rules
See RFC #999
We register some options in TorchLoweringPipeline and DecomposeComplexOpsPass to make the decomposition rules configurable.
Co-authored-by: Bairen Yi [email protected] Co-authored-by: Jiawei Wu [email protected] Co-authored-by: Tianyou Guo [email protected] Co-authored-by: Xu Yan [email protected] Co-authored-by: Ziheng Jiang [email protected]
Can we add some file check unit tests for the pass?
Can we add some file check unit tests for the pass?
Done.
I have some specific opinions about how we want to do this -- I am on vacation the rest of this week, but after #1165 lands this was the next thing I was going to work on (and this PR creates a nasty merge conflict). If you can wait for a week or so I would be happy to implement this.
That's okay. I can wait for that.
There is a better choice in PR #1242 . This PR is useless and closed.