評價此頁

torch.xpu.seed_all#

torch.xpu.seed_all()[原始碼]#

將所有 GPU 隨機數生成的種子設定為一個隨機數。

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