[tensorexpr] Move the allocation of intermediate buffers from TEK to CodeGen (#67143)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67143
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D31881151
Pulled By: huiguoo
fbshipit-source-id: 457e5d4ff8a15f70af9c797c9ab4803d8e779abe