Fix refine_ranges corner case (#164075)

address https://github.com/pytorch/pytorch/issues/161360

u0>0 should update the range of u0 to start from [1, ..] this fix it. it was not doing that.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164075
Approved by: https://github.com/ColinPeppler
This commit is contained in:
Laith Sakka
2025-10-02 17:09:51 -07:00
committed by PyTorch MergeBot
parent b6b7a44dec
commit 27234792ad
5 changed files with 19 additions and 11 deletions

View File

@ -1867,7 +1867,7 @@ L['a'].size()[1] > L['a'].size()[0]
show_guards(tensor),
"""\
L['a'].size()[1] < L['a'].size()[0]
L['a'].size()[0] <= 19
3 <= L['a'].size()[0] and L['a'].size()[0] <= 19
L['a'].size()[1] <= 18""")
def test_sym_storage_offset(self):