评价此页

torch.xpu.seed_all#

torch.xpu.seed_all()[source]#

将所有 GPU 随机数生成的种子设置为一个随机数。

If XPU is not available, calling this function is safe; it will be silently ignored.