Rate this Page

torch.initial_seed#

torch.initial_seed()[source]#

Returns the initial seed for generating random numbers as aPythonlong.

Note

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

Return type

int