pytorch / 1 / generated / torch.initial_seed.html

torch.initial_seed

torch.initial_seed() [source]

Returns the initial seed for generating random numbers as a Python long.

Return type:

int

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.initial_seed.html