[TensorExpr] Make CacheReplacer and IndexFlattener mutate stmts/exprs inplace. (#63527)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63527
Test Plan: Imported from OSS
Reviewed By: navahgar
Differential Revision: D30411411
Pulled By: ZolotukhinM
fbshipit-source-id: efb14ee57b36537fa4fefa89bdd6bafe7151c012
Author
Mikhail Zolotukhin