评价此页

torch.xpu.initial_seed#

torch.xpu.initial_seed()[source]#

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

警告

此函数会主动初始化XPU。

返回类型

int