Set the state of the default generator.
state (Tensor) – the target state
Ascend GPU CPU
Ascend
GPU
CPU
Examples
>>> from mindspore import set_rng_state, get_rng_state >>> state = get_rng_state() >>> set_rng_state(state)