torch.cuda.initial_seed¶ torch.cuda.initial_seed()[原始碼][原始碼]¶ 傳回目前 GPU 的目前隨機種子。 警告 此函數會立即初始化 CUDA。 傳回類型 int