Reserve sizes in c10::VaryingShape::concrete_sizes(), c10::TensorType::computeStrideProps() (#119189)
Summary: Costly reallocs.
Test Plan: CI
Reviewed By: efiks
Differential Revision: D53264908
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119189
Approved by: https://github.com/Skylion007