Add TensorShapeAndType (#29848)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29848
design doc: https://docs.google.com/document/d/15luH8R7a0WMiZzoKxu6cI0a1XDW4C0vyaW3-XQ_3G30/edit#heading=h.cyvbc4wtxkn7
Test Plan: buck build
Reviewed By: ipiszy
Differential Revision: D18513718
fbshipit-source-id: c3e3b30b58360b898528422ba9618b1dd3beb0a8