Support negative index slicing with backed symints#177308
Support negative index slicing with backed symints#177308ColinPeppler wants to merge 12 commits intogh/ColinPeppler/4/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177308
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 907a318 with merge base a345892 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
| shifts = torch.arange(0, 64, 8, device=x.device, dtype=torch.int64) | ||
| return (expanded >> shifts) & 255 | ||
|
|
||
| torch.cuda.caching_allocator_enable(False) |
There was a problem hiding this comment.
ditto same as previous PR pls address before landing do try catch finally maybe?
| if any(free_unbacked_symbols(x) for x in (start, end, dim_size)): | ||
| min_func = sympy.Min | ||
| max_func = sympy.Max | ||
| elif any( |
There was a problem hiding this comment.
mm this is only needed when backed_size_oblivious is on .
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This reverts commit 9a7ae22. Reverted #177308 on behalf of https://github.com/yangw-dev due to sorry the pr breaks internal test RiskExtrapolationModuleStabilityTest, please fix it and reland D97174518 ([comment](#175819 (comment)))
|
@ColinPeppler your PR has been reverted as part of the stack under #175819. |
Pull Request resolved: pytorch#177308 Approved by: https://github.com/laithsakka ghstack dependencies: pytorch#175819
…77308)" This reverts commit 9a7ae22. Reverted pytorch#177308 on behalf of https://github.com/yangw-dev due to sorry the pr breaks internal test RiskExtrapolationModuleStabilityTest, please fix it and reland D97174518 ([comment](pytorch#175819 (comment)))
|
Starting merge as part of PR stack under #177418 |
1 similar comment
|
Starting merge as part of PR stack under #177418 |
Pull Request resolved: pytorch#177308 Approved by: https://github.com/laithsakka ghstack dependencies: pytorch#175819
…77308)" This reverts commit 9a7ae22. Reverted pytorch#177308 on behalf of https://github.com/yangw-dev due to sorry the pr breaks internal test RiskExtrapolationModuleStabilityTest, please fix it and reland D97174518 ([comment](pytorch#175819 (comment)))
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
|
Successfully rebased |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
|
Starting merge as part of PR stack under #177418 |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo [ghstack-poisoned]
|
Starting merge as part of PR stack under #177418 |
#177418) ### Why - An IMA debugging aid to specifically disable CCA on a targeted block of code. - Another option is `PYTORCH_NO_CUDA_MEMORY_CACHING=1` but that is set globally. Usually I'd do this. ``` torch.cuda.caching_allocator_enable(False) try: ... finally: # make sure to clean up even on exception torch.cuda.caching_allocator_enable(True) ``` ### What Add a utility that - Disables CUDA caching allocator (CCA) when entering the block. - Restores the CCA state when exiting the block (even on exceptions). ``` with torch.cuda.caching_allocator_disabled(): ... ``` Pull Request resolved: #177418 Approved by: https://github.com/eee4017, https://github.com/laithsakka ghstack dependencies: #177308
Pull Request resolved: pytorch#177308 Approved by: https://github.com/laithsakka
pytorch#177418) ### Why - An IMA debugging aid to specifically disable CCA on a targeted block of code. - Another option is `PYTORCH_NO_CUDA_MEMORY_CACHING=1` but that is set globally. Usually I'd do this. ``` torch.cuda.caching_allocator_enable(False) try: ... finally: # make sure to clean up even on exception torch.cuda.caching_allocator_enable(True) ``` ### What Add a utility that - Disables CUDA caching allocator (CCA) when entering the block. - Restores the CCA state when exiting the block (even on exceptions). ``` with torch.cuda.caching_allocator_disabled(): ... ``` Pull Request resolved: pytorch#177418 Approved by: https://github.com/eee4017, https://github.com/laithsakka ghstack dependencies: pytorch#177308
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo