Rate this Page

torch.cuda.initial_seed#

torch.cuda.initial_seed()[source]#

Return the current random seed of the current GPU.

Warning

This function eagerly initializes CUDA.

Return type

int