Change default device to current acclerator#164399
Change default device to current acclerator#164399drisspg wants to merge 3 commits intogh/drisspg/208/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164399
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 1512848 with merge base b9e73e6 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
cc @albanD |
|
We need to allow None to be passed in as the default for autoselection probably. |
|
what does torch.accelerator.current_accelerator() return on a device w/ no accelerator is it not cpu? That being said in retrospect there should have been no default arg for this func |
Hi @drisspg, When an accelerator is available, |
|
@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 |
Pull Request resolved: pytorch#164399 Approved by: https://github.com/albanD
Stack from ghstack (oldest at bottom):
cc @albanD @guangyey @EikanWang