mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Docs: update default device description (#101283)
Closes #101274 Pull Request resolved: https://github.com/pytorch/pytorch/pull/101283 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
010763be9a
commit
2a3e45a2a8
@ -996,7 +996,7 @@ Args:
|
||||
{dtype}
|
||||
device (:class:`torch.device`, optional): the device of the constructed tensor. If None and data is a tensor
|
||||
then the device of data is used. If None and data is not a tensor then
|
||||
the result tensor is constructed on the CPU.
|
||||
the result tensor is constructed on the current device.
|
||||
|
||||
|
||||
Example::
|
||||
@ -9273,7 +9273,7 @@ Keyword args:
|
||||
{dtype}
|
||||
device (:class:`torch.device`, optional): the device of the constructed tensor. If None and data is a tensor
|
||||
then the device of data is used. If None and data is not a tensor then
|
||||
the result tensor is constructed on the CPU.
|
||||
the result tensor is constructed on the current device.
|
||||
{requires_grad}
|
||||
{pin_memory}
|
||||
|
||||
|
Reference in New Issue
Block a user