pytorch / 2 / 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/2.1/generated/torch.initial_seed.html