[ONNX] Fix ComputeShapeFromReshape when input_shape_size < reshape_size (#56171)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/56171
Test Plan: Imported from OSS
Reviewed By: pbelevich
Differential Revision: D27866146
Pulled By: SplitInfinity
fbshipit-source-id: 4f361e1a99e4aedd701c73aae97a440f98282086