torch.xpu.initial_seed¶ torch.xpu.initial_seed()[source][source]¶ 返回當前 GPU 的當前隨機種子。 警告 此函式會立即初始化 XPU。 返回型別 int