[TensorExpr] Insert allocations for temporary buffer at the innermost valid scope. (#36836)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36836
Test Plan: Imported from OSS
Differential Revision: D21099913
Pulled By: ZolotukhinM
fbshipit-source-id: 8faf5f1d55b60bdd4f4b2b909977aeb7abaa95b4
Author
Mikhail Zolotukhin