[TensorExpr] Add a method for sanitizing Var and Buf names in Stmt. (#65010)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65010
This pass ensures all names are legal and not-duplicated.
Fixes #52727.
Test Plan: Imported from OSS
Reviewed By: bertmaher, navahgar
Differential Revision: D30939717
Pulled By: ZolotukhinM
fbshipit-source-id: 7dbe7f937de41f22ad49137a5e067d698443ed63
Author
Mikhail Zolotukhin