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:
Horace He
2023-07-13 20:59:07 +00:00
committed by PyTorch MergeBot
parent 85745cd3d9
commit b88b742db8

View File

@ -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