Size oblivious test for slice optimization (#119625)
Fixes https://github.com/pytorch/pytorch/issues/119623
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119625
Approved by: https://github.com/albanD