get_rng_state¶
- paddle. get_rng_state ( device=None ) [source]
-
Get all random states of random generators of specified device. :param device: This parameter determines the specific running device.
It can be
cpu
,gpu
,xpu
, Default is None. If None, return the generators of current device (specified byset_device
).- Returns
-
object.
- Return type
-
GeneratorState
Examples