评价此页

torch.mtia.get_rng_state#

torch.mtia.get_rng_state(device='mtia')[source]#

以 ByteTensor 形式返回随机数生成器状态。

参数

device (torch.device or int, optional) – The device to return the RNG state of. Default: 'mtia' (i.e., torch.device('mtia'), the current mtia device).

返回类型

张量