[TensorExpr] Handle constant nodes in shape inference. (#42566)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/42566
Test Plan: Imported from OSS
Reviewed By: bertmaher
Differential Revision: D22936176
Pulled By: ZolotukhinM
fbshipit-source-id: 69d0f9907de0e98f1fbd56407df235774cb5b788
Author
Mikhail Zolotukhin