mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Update description for torch.random.fork_rng (#151881)
As the title stated. Related ISSUE: https://github.com/pytorch/pytorch/issues/151784 Pull Request resolved: https://github.com/pytorch/pytorch/pull/151881 Approved by: https://github.com/albanD
This commit is contained in:
@ -143,8 +143,8 @@ def fork_rng(
|
||||
enabled (bool): if ``False``, the RNG is not forked. This is a convenience
|
||||
argument for easily disabling the context manager without having
|
||||
to delete it and unindent your Python code under it.
|
||||
device_type (str): device type str, default is `cuda`. As for custom device,
|
||||
see details in [Note: support the custom device with privateuse1]
|
||||
device_type (str): device type str, default is `cuda`. As for supported device,
|
||||
see details in :ref:`accelerator<accelerators>`
|
||||
"""
|
||||
|
||||
if device_type == "meta":
|
||||
|
Reference in New Issue
Block a user