評價此頁

torch.cuda.initial_seed#

torch.cuda.initial_seed()[原始碼]#

返回當前 GPU 的當前隨機種子。

警告

此函式會立即初始化 CUDA。

返回型別

int