seed

ivy.seed(seed_value=0, f=None)[source]

Sets the seed for random number generation.

Parameters
  • seed_value (int) – Seed for random number generation, must be a positive integer.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty