torch.mtia.get_rng_state¶ torch.mtia.get_rng_state(device='mtia')[來源][來源]¶ 傳回隨機數產生器的狀態為 ByteTensor。 參數 device (torch.device 或 int,選填) – 要回傳 RNG 狀態的裝置。預設值:'mtia' (亦即,torch.device('mtia'),目前的 mtia 裝置)。 回傳類型 Tensor