torch.mtia.get_rng_state¶ torch.mtia.get_rng_state(device='mtia')[source][source]¶ 返回随机数生成器状态,以 ByteTensor 形式表示。 参数 device (torch.device 或 int, 可选) – 要返回 RNG 状态的设备。默认值:'mtia' (即,torch.device('mtia'),当前 mtia 设备)。 返回类型 Tensor