mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 21:49:24 +08:00
fixed torch.manual_seed note (#105175)
Fixes https://github.com/pytorch/pytorch/issues/87509 Pull Request resolved: https://github.com/pytorch/pytorch/pull/105175 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
85745cd3d9
commit
b88b742db8
@ -13607,9 +13607,7 @@ add_docstr(
|
||||
r"""
|
||||
Generator.manual_seed(seed) -> Generator
|
||||
|
||||
Sets the seed for generating random numbers. Returns a `torch.Generator` object.
|
||||
It is recommended to set a large seed, i.e. a number that has a good balance of 0
|
||||
and 1 bits. Avoid having many 0 bits in the seed.
|
||||
Sets the seed for generating random numbers. Returns a `torch.Generator` object. Any 32-bit integer is a valid seed.
|
||||
|
||||
Arguments:
|
||||
seed (int): The desired seed. Value must be within the inclusive range
|
||||
|
Reference in New Issue
Block a user