Rate this Page

torch.initial_seed#

torch.initial_seed()[source]#

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

Note

The returned seed is for the default generator on CPU only.

Return type

int