Shortcuts

torch.xpu.initial_seed

torch.xpu.initial_seed()[源代码]

返回当前GPU的当前随机种子。

警告

此函数会急切地初始化XPU。

Return type

int

优云智算