mindspore.get_rng_state

View Source On Gitee
mindspore.get_rng_state()[source]

Get the state of the default generator.

Returns

Tensor, generator state.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import numpy as np
>>> from mindspore import get_rng_state
>>> state = get_rng_state()