Simplify prim::shape when we have complete tensor types. (#33336)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33336
Differential Revision: D19900566
Pulled By: resistor
fbshipit-source-id: c8eaad70c8ea57ebbe920dcfbdaf6a9435b49506