torch.initial_seed¶ torch.initial_seed()[原始碼][原始碼]¶ 返回用於生成隨機數的初始種子,型別為 Python long。 注意 返回的種子僅適用於 CPU 上的預設生成器。 返回型別 int