[Inductor] Fix view/reshape on tensors with shape 0 in any dimension (#99671)
From 14k github models, not sure if this is the right way to fix this issue.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99671
Approved by: https://github.com/ngimel