[nnc] Sanitized the names of constants in the input graph. (#63990)
authorRaghavan Raman <raghavanr@fb.com>
Thu, 26 Aug 2021 16:49:44 +0000 (09:49 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 Aug 2021 16:52:02 +0000 (09:52 -0700)
commit6d31ba6ddcf5f839bd2d3f20a19712846d030d8b
tree969ba89a1e638597d71488171fdcb396ad65c9c6
parentba5f1b1076ed6fae4a46d7317204963a4cd53701
[nnc] Sanitized the names of constants in the input graph. (#63990)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/63923

The input graph can contain constants whose names contain special characters. So, all names of constants in the input graph need to be sanitized.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63990

Reviewed By: ZolotukhinM

Differential Revision: D30558432

Pulled By: navahgar

fbshipit-source-id: de5b0c23d50ee8997f40f2c0fc605dda3719186f
test/cpp/tensorexpr/test_kernel.cpp
torch/csrc/jit/tensorexpr/kernel.cpp