mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Revert "Fix torch.normal ignores default_device (#144070)"
This reverts commit 184549b2d7e59acfc6e47d121e9ebb50648945b3. Reverted https://github.com/pytorch/pytorch/pull/144070 on behalf of https://github.com/ezyang due to broken a specific use case ([comment](https://github.com/pytorch/pytorch/pull/144070#issuecomment-2590681953))
This commit is contained in:
@ -1166,7 +1166,7 @@ def set_default_device(
|
||||
.. note::
|
||||
|
||||
This doesn't affect functions that create tensors that share the same memory as the input, like:
|
||||
:func:`torch.from_numpy` and :func:`torch.frombuffer`. Using :func:`torch.Tensor.to` move tensor to desired device.
|
||||
:func:`torch.from_numpy` and :func:`torch.frombuffer`
|
||||
|
||||
Args:
|
||||
device (device or string): the device to set as default
|
||||
|
Reference in New Issue
Block a user