[bench] Fix build issues with TensorExpr cpp benchmarks (#72196)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/72196
Test Plan: Imported from OSS
Reviewed By: dagitses
Differential Revision: D33951743
Pulled By: navahgar
fbshipit-source-id: f1b36bb3ba9cd649f0dbf0911f5a9e4791089e65
(cherry picked from commit fbe5cadb5f473a882e19695a3a1980f11d2c166f)