mindspore.get_seed

mindspore.get_seed()[source]

Get global seed.

Returns

Integer. The global seed.

Examples

>>> import mindspore as ms
>>> ms.set_seed(1234)
>>> seed = ms.get_seed()
>>> print(seed)
1234