shuffle

ivy.shuffle(x, f=None)[source]

Shuffles the given array along axis 0.

Parameters
  • x (array) – An array object, in the specific Machine learning framework.

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

Returns

An array object, shuffled along the first dimension.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty