评价此页

torch.xpu.manual_seed_all#

torch.xpu.manual_seed_all(seed)[source]#

设置所有 GPU 随机数生成的种子。

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

参数

seed (int) – 期望的种子。