評價此頁

torch.mtia.set_rng_state#

torch.mtia.set_rng_state(new_state, device='mtia')[原始碼]#

設定隨機數生成器狀態。

引數
  • new_state (torch.ByteTensor) – 所需的狀態

  • device (torch.deviceint, 可選) – 設定 RNG 狀態的裝置。預設值:'mtia'(即 torch.device('mtia'),當前 mtia 裝置)。