Get the state of the default generator.
Tensor, generator state.
Ascend GPU CPU
Ascend
GPU
CPU
Examples
>>> import numpy as np >>> from mindspore import get_rng_state >>> state = get_rng_state()