pytorch
a4253075 - [ATen core IR] De-register `full_like` and `empty_like` as core (#110924)

Commit
1 year ago
[ATen core IR] De-register `full_like` and `empty_like` as core (#110924) ## Context Following up from @peterbell10 comments on https://github.com/pytorch/pytorch/pull/110882. * `empty_like` was erroneously classified as `core`. It can be decomposed using `empty_permuted` and in fact is currently decomposed this way in the core decomposition table. * `full_like` can be similarly decomposed to `full_permuted` once https://github.com/pytorch/pytorch/pull/110234 lands. The current decomposition into `empty_like` and `fill` doesn't work because `fill` decomposes to `full_like`, resulting in a recursive loop. Pull Request resolved: https://github.com/pytorch/pytorch/pull/110924 Approved by: https://github.com/kirklandsign
Author
Committer
Parents
Loading