Move Lazy Shape Inference functions to pytorch core (#72756)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/72756
Test Plan: tested via lazy_tensor_staging branch (test_ptltc operator tests as well as torchbench inference)
Reviewed By: bdhirsh
Differential Revision: D34187999
fbshipit-source-id: f40c5869d573de4a58233ee1e8710f8a0ea7f284
(cherry picked from commit c4b2977c5a9afa7bf89cb7c8914738ee6100dd7b)