pytorch/docs
Yu, Guangye 9b498d3bb2 Update docs for torch.device (#156686)
# Motivation
Update the doc, to make `torch.device`'s constructor officially support the following methods:
- A device string, which is a string representation of the device type and optionally the device ordinal.
- A device type and a device ordinal.
- A device ordinal, which is treated as the current accelerator type.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156686
Approved by: https://github.com/albanD
2025-06-25 02:12:36 +00:00
..
cpp Removing conda references from PyTorch Docs (#152702) 2025-05-20 20:33:28 +00:00
source Update docs for torch.device (#156686) 2025-06-25 02:12:36 +00:00
.gitignore
libtorch.rst Add ROCm documentation to libtorch (C++) reST. (#136378) 2024-09-25 02:30:56 +00:00
make.bat
Makefile Add scripts to generate plots of LRSchedulers (#149189) 2025-04-14 09:53:38 +00:00
README.md
requirements.txt Update docs dependencies for local build (#151796) 2025-04-24 18:40:42 +00:00

Please see the Writing documentation section of CONTRIBUTING.md for details on both writing and building the docs.