評價此頁

torch.xpu.manual_seed_all#

torch.xpu.manual_seed_all(seed)[原始碼]#

設定所有 GPU 隨機數生成的種子。

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

引數

seed (int) – 期望的種子。