Skip to main content

Python function

seed

seed()

max.experimental.random.seed()

source

Gets the global random seed tensor.

Returns the global seed tensor used for random number generation in eager execution mode. Creates the seed tensor on first access, initialized with the dtype, shape, and device specified by max.graph.ops.random.SeedType.

Returns:

The global seed tensor for random number generation.

Return type:

Tensor