[nnc] Add support for dynamic shapes in TensorExprKernel (#67197)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67197
Test Plan: Imported from OSS
Reviewed By: eellison, ZolotukhinM
Differential Revision: D31902471
Pulled By: navahgar
fbshipit-source-id: d2729a38ba1ac607ff07f516ed56fbd9085715dc