mindspore.get_seed

View Source On Gitee
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