einops_rearrange

ivy.einops_rearrange(x: Union[ivy.Array, ivy.NativeArray], pattern: str, **axes_lengths: Dict[str, int]) → Union[ivy.Array, ivy.NativeArray][source]

Perform einops rearrange operation on input array x.

Parameters
  • x (array) – Input array to be re-arranged.

  • pattern (str) – Rearrangement pattern.

  • axes_lengths (keyword parameter args) – Any additional specifications for dimensions.

Returns

New array with einops.rearrange having been applied.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty