快捷方式

torch.mtia.get_rng_state

torch.mtia.get_rng_state(device='mtia')[原始碼][原始碼]

將隨機數生成器狀態作為 ByteTensor 返回。

引數

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

返回型別

Tensor

文件

查閱 PyTorch 的全面開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源