mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix Tensor.uniform_ documentation to mention generator argument (#99510)
Fixes #98202 , mentioning support for generator arguments while providing an example of the function's use. Would be happy to iterate on this if there are any issues. Pull Request resolved: https://github.com/pytorch/pytorch/pull/99510 Approved by: https://github.com/soulitzer
This commit is contained in:
@ -5937,7 +5937,7 @@ Example::
|
||||
add_docstr_all(
|
||||
"uniform_",
|
||||
r"""
|
||||
uniform_(from=0, to=1) -> Tensor
|
||||
uniform_(from=0, to=1, *, generator=None) -> Tensor
|
||||
|
||||
Fills :attr:`self` tensor with numbers sampled from the continuous uniform
|
||||
distribution:
|
||||
|
Reference in New Issue
Block a user