[Static Runtime] remove redundant gather_ranges when fusing (#53323)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53323
Whilst optimizing inline cvr local ro, found a pattern where gather_ranges is used redundantly. Fuse this pattern to remove unnecessary gather_ranges.
Reviewed By: hlu1
Differential Revision: D26659824
fbshipit-source-id: 6420afa3a2c3272c57706b70c2e9834014d6c32d
Author
Marat Subkhankulov