Rate this Page

torch.xpu.initial_seed#

torch.xpu.initial_seed()[source]#

Return the current random seed of the current GPU.

Warning

This function eagerly initializes XPU.

Return type

int