oneflow.cuda.get_rng_state¶
-
oneflow.cuda.get_rng_state(device: Union[int, str, oneflow._oneflow_internal.device] = 'cuda') → oneflow.Tensor¶ Returns the random number generator state of the specified GPU as a ByteTensor.
- Parameters
device (flow.device or int, optional) – The device to return the RNG state of. Default:
'cuda'(i.e.,flow.device('cuda'), the current CUDA device).