mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
This PR reorganizes CUDA and XPU API documentation with additional aliases pages. Multiple entries of APIs under torch.cuda are thus removed. Pull Request resolved: https://github.com/pytorch/pytorch/pull/162984 Approved by: https://github.com/janeyx99
768 B
768 B
Aliases in torch.xpu
The following are aliases to their counterparts in torch.xpu
in the nested namespaces in which they are defined. For any of these APIs, feel free to use the top-level version in torch.xpu
like torch.xpu.seed
or the nested version torch.xpu.random.seed
.
.. automodule:: torch.xpu.random
.. currentmodule:: torch.xpu.random
.. autosummary::
:toctree: generated
:nosignatures:
get_rng_state
get_rng_state_all
initial_seed
manual_seed
manual_seed_all
seed
seed_all
set_rng_state
set_rng_state_all
.. automodule:: torch.xpu.streams
.. currentmodule:: torch.xpu.streams
.. autosummary::
:toctree: generated
:nosignatures:
Event
Stream